mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-20 11:27:22 +03:00
31 lines
1.5 KiB
Nix
31 lines
1.5 KiB
Nix
final: prev: prev.lib.optionalAttrs prev.stdenv.hostPlatform.isMusl ({
|
|
# Prevent pkgsMusl.pkgsStatic chain
|
|
busybox-sandbox-shell = prev.busybox-sandbox-shell.override { inherit (final) busybox; };
|
|
|
|
# we don't want the static output to be split. That just
|
|
# messes with the z -> libz mapping. We can't have a conditional
|
|
# 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
|
|
bzip2 = prev.bzip2.overrideAttrs (_: { dontDisableStatic = true; });
|
|
gmp = prev.gmp.override { withStatic = true; };
|
|
ncurses = prev.ncurses.override { enableStatic = true; };
|
|
libsodium = prev.libsodium.overrideAttrs (_: { dontDisableStatic = true; });
|
|
zstd = prev.zstd.override { static = true; };
|
|
|
|
numactl = prev.numactl.overrideAttrs (_: { configureFlags = "--enable-static"; });
|
|
|
|
# See https://github.com/input-output-hk/haskell.nix/issues/948
|
|
postgresql = (prev.postgresql.overrideAttrs (old: { dontDisableStatic = true; }))
|
|
.override { enableSystemd = false; gssSupport = false; };
|
|
openssl = prev.openssl.override { static = true; };
|
|
|
|
# Fails on cross compile
|
|
nix = prev.nix.overrideAttrs (_: { doInstallCheck = false; });
|
|
} // 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; };
|
|
})
|