Skip to content

Commit 2c20f14

Browse files
committed
Add nixpkgs patch to add .a files to bzip2 and zstd
1 parent 0236a82 commit 2c20f14

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

survey/default.nix

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ let
613613
acl_static = previous.acl.overrideAttrs (old: { dontDisableStatic = true; });
614614
attr_static = previous.attr.overrideAttrs (old: { dontDisableStatic = true; });
615615
bash_static = previous.bash.overrideAttrs (old: { dontDisableStatic = true; });
616-
bzip2_static = previous.bzip2.overrideAttrs (old: { dontDisableStatic = true; });
616+
bzip2_static = (previous.bzip2.override { enableStatic = true; }).overrideAttrs (old: { dontDisableStatic = true; });
617617
coreutils_static = previous.coreutils.overrideAttrs (old: { dontDisableStatic = true; });
618618
diffutils_static = previous.diffutils.overrideAttrs (old: { dontDisableStatic = true; });
619619
findutils_static = previous.findutils.overrideAttrs (old: { dontDisableStatic = true; });
@@ -760,6 +760,8 @@ let
760760

761761
openssl = previous.openssl.override { static = true; };
762762

763+
zstd = previous.zstd.override { enableStatic = true; };
764+
763765
libsass = previous.libsass.overrideAttrs (old: { dontDisableStatic = true; });
764766

765767
# Disabling kerberos support for now, as openssh's `./configure` fails to
@@ -1186,10 +1188,14 @@ let
11861188
# doctests: doctests: unable to load package `ghc-prim-0.5.3'
11871189
yesod-paginator = dontCheck super.yesod-paginator;
11881190

1189-
# Disabling test suite because it takes extremely long (> 30 minutes):
1190-
# https://github.com/mrkkrp/zip/issues/55
1191-
# TODO: Re-enable when we have version `1.3.1` of it which has the fix.
1192-
zip = dontCheck super.zip;
1191+
# Workaround for `zip`'s dependency `bzlib-conduit` using `extra-libraries: bz`
1192+
# instead of `pkgconfig-depends`.
1193+
# TODO: Make a PR to fix that.
1194+
zip =
1195+
addStaticLinkerFlagsWithPkgconfig
1196+
(super.zip.overrideAttrs (old: { configureFlags = (old.configureFlags or []) ++ ["--ghc-options=-v"]; }))
1197+
[ final.bzip2_static ]
1198+
"--libs bzip2";
11931199

11941200
# Override libs explicitly that can't be overridden with overlays.
11951201
# See note [Packages that can't be overridden by overlays].
@@ -1320,8 +1326,8 @@ let
13201326
hopenpgp-tools =
13211327
addStaticLinkerFlagsWithPkgconfig
13221328
super.hopenpgp-tools
1323-
[ final.nettle final.bzip2 ]
1324-
"--libs nettle bz2";
1329+
[ final.nettle final.bzip2_static ]
1330+
"--libs nettle bzip2";
13251331

13261332
sdl2-gfx =
13271333
addStaticLinkerFlagsWithPkgconfig

0 commit comments

Comments
 (0)