Skip to content

Commit 7a2d291

Browse files
committed
nixpkgs: Update submodule, add changes for zlib cleanup from NixOS/nixpkgs#66490
1 parent fc47801 commit 7a2d291

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

nixpkgs

nixpkgs.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
if builtins.pathExists ./nixpkgs/pkgs
88
then import ./nixpkgs {}
99
# Pinned nixpkgs version; should be kept up-to-date with our submodule.
10-
else import (fetchTarball https://github.com/nh2/nixpkgs/archive/4650168465cd411dcc4bd5096c1eba5f02981cc3.tar.gz) {}
10+
else import (fetchTarball https://github.com/nh2/nixpkgs/archive/b577340eb5bc3b72549f0544b50e2e37df78bf12.tar.gz) {}

survey/default.nix

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,9 @@ let
448448
# Takes a zlib derivation and overrides it to have both .a and .so files.
449449
statify_zlib = zlib_drv:
450450
(zlib_drv.override {
451-
static = false;
452451
shared = true;
452+
static = true;
453+
splitStaticOutput = false;
453454
}).overrideAttrs (old: { dontDisableStatic = true; });
454455

455456
# Takes a curl derivation and overrides it to have both .a and .so files,
@@ -552,17 +553,6 @@ let
552553
patchelf_static = previous.patchelf.overrideAttrs (old: { dontDisableStatic = true; });
553554
pcre_static = previous.pcre.overrideAttrs (old: { dontDisableStatic = true; });
554555
xz_static = previous.xz.overrideAttrs (old: { dontDisableStatic = true; });
555-
# TODO All 3 zlibs below can be simplified/removed once https://github.com/NixOS/nixpkgs/pull/66490 is available
556-
zlib_static = (previous.zlib.override {
557-
static = true;
558-
shared = true;
559-
# If both `static` and `dynamic` are enabled, then the zlib package
560-
# puts the static libs into the `.static` split-output.
561-
}).static;
562-
zlib_static_only = (previous.zlib.override {
563-
static = true;
564-
shared = false;
565-
});
566556
zlib_both = statify_zlib previous.zlib;
567557
# Also override the original packages with a throw (which as of writing
568558
# has no effect) so we can know when the bug gets fixed in the future.
@@ -1106,7 +1096,7 @@ let
11061096
statify = drv: with final.haskell.lib; final.lib.foldl appendConfigureFlag (disableLibraryProfiling (disableSharedExecutables (useFixedCabal drv))) ([
11071097
"--enable-executable-static" # requires `useFixedCabal`
11081098
# TODO These probably shouldn't be here but only for packages that actually need them
1109-
"--extra-lib-dirs=${if approach == "pkgsMusl" then final.zlib_static else final.zlib}/lib"
1099+
"--extra-lib-dirs=${if approach == "pkgsMusl" then final.zlib_both else final.zlib}/lib"
11101100
"--extra-lib-dirs=${final.ncurses.override { enableStatic = true; }}/lib"
11111101
# TODO Figure out why this and the below libffi are necessary.
11121102
# `working` and `workingStackageExecutables` don't seem to need that,

0 commit comments

Comments
 (0)