Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Fix musl64 bzip2 #2176

Merged
merged 5 commits into from
Jul 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions overlays/musl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ final: prev: prev.lib.optionalAttrs prev.stdenv.hostPlatform.isMusl ({
zlib = prev.zlib.override { splitStaticOutput = false; };

# and a few more packages that need their static libs explicitly enabled
bzip2 = prev.bzip2.override (
# This option was renamed to `enableStatic`, to be more consistent with packages with a similar
# static toggles. However, it now correctly defaults to true when `hostPlatform.isStatic` is true.
if builtins.compareVersions prev.lib.trivial.release "23.11" < 0
then { linkStatic = true; }
else {
# `isMusl` does not always mean `isStatic`, so setting `enableStatic` to true here.
enableStatic = true;
});
gmp = prev.gmp.override { withStatic = true; };
ncurses = prev.ncurses.override { enableStatic = true; };
libsodium = prev.libsodium.overrideAttrs (_: { dontDisableStatic = true; });
Expand Down Expand Up @@ -39,8 +48,4 @@ final: prev: prev.lib.optionalAttrs prev.stdenv.hostPlatform.isMusl ({
} // prev.lib.optionalAttrs (prev.lib.versionAtLeast prev.lib.trivial.release "20.03") {
# Fix infinite recursion between openssh and fetchcvs
openssh = prev.openssh.override { withFIDO = false; };
} // prev.lib.optionalAttrs (prev.lib.versionOlder prev.lib.trivial.release "23.05") {
# This option was renamed to enableStatic, to be more consistent with packages with a similar
# static toggles. However, it now correctly defaults to true when `hostPlatform.isStatic` is true.
bzip2 = prev.bzip2.override { linkStatic = true; };
})
Loading