mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
justStaticExecutables: enable -dead_strip on mac to shrink closure
This commit is contained in:
parent
0032e55232
commit
24d313e203
1 changed files with 4 additions and 1 deletions
|
@ -89,7 +89,10 @@ rec {
|
|||
isLibrary = false;
|
||||
doHaddock = false;
|
||||
postFixup = "rm -rf $out/lib $out/nix-support $out/share/doc";
|
||||
});
|
||||
} // (if pkgs.stdenv.isDarwin then {
|
||||
configureFlags = (drv.configureFlags or []) ++ ["--ghc-option=-optl=-dead_strip"];
|
||||
} else {})
|
||||
);
|
||||
|
||||
buildFromSdist = pkg: pkgs.lib.overrideDerivation pkg (drv: {
|
||||
unpackPhase = let src = sdistTarball pkg; tarname = "${pkg.pname}-${pkg.version}"; in ''
|
||||
|
|
Loading…
Reference in a new issue