2020-05-08 10:32:40 +03:00
|
|
|
final: prev: prev.lib.optionalAttrs prev.stdenv.hostPlatform.isMusl ({
|
|
|
|
# Prevent pkgsMusl.pkgsStatic chain
|
|
|
|
busybox-sandbox-shell = prev.busybox-sandbox-shell.override { inherit (final) busybox; };
|
|
|
|
|
2020-06-23 04:45:22 +03:00
|
|
|
# we don't want the static output to be split. That just
|
2020-08-31 02:08:25 +03:00
|
|
|
# messes with the z -> libz mapping. We can't have a conditional
|
2020-06-23 04:45:22 +03:00
|
|
|
# z -> libz / z -> libz.static mapping without threading the
|
|
|
|
# package configuration in. That seems a bit overkill.
|
|
|
|
zlib = prev.zlib.override { splitStaticOutput = false; };
|
|
|
|
|
|
|
|
# and a few more packages that need their static libs explicitly enabled
|
|
|
|
gmp = prev.gmp.override { withStatic = true; };
|
|
|
|
ncurses = prev.ncurses.override { enableStatic = true; };
|
|
|
|
libsodium = prev.libsodium.overrideAttrs (_: { dontDisableStatic = true; });
|
|
|
|
|
|
|
|
numactl = prev.numactl.overrideAttrs (_: { configureFlags = "--enable-static"; });
|
|
|
|
|
2020-05-08 10:32:40 +03:00
|
|
|
# Fails on cross compile
|
|
|
|
nix = prev.nix.overrideAttrs (_: { doInstallCheck = false; });
|
2020-05-11 05:41:22 +03:00
|
|
|
} // prev.lib.optionalAttrs (prev.lib.versionAtLeast prev.lib.trivial.release "20.03") {
|
2020-05-08 10:32:40 +03:00
|
|
|
# Fix infinite recursion between openssh and fetchcvs
|
|
|
|
openssh = prev.openssh.override { withFIDO = false; };
|
|
|
|
})
|