on master help sign in
Explicitly remove -dead_strip from LD config
commitbb9c5fd7e8c096e2fa7c53b0c9c4066de3f17240 author3noch <eacameron@gmail.com> dateThu 10 May 2018, 15:02 (8 years ago) parent9af57b6
1 file changed+7−1
default.nix+7−1
default.nix+7−1
@@ -11,7 +11,13 @@ let #TODO: Upstream
1111 # automatically if the resulting derivation is installed, e.g. by
1212 # `nix-env -i`.
1313
14− justStaticExecutables' = drvOrig: overrideCabal (justStaticExecutables drvOrig) (drv: { configureFlags = drvOrig.configureFlags or [];});
14+ # TODO: Remove this after updating nixpkgs: https://github.com/NixOS/nixpkgs/issues/37750
15+ justStaticExecutables' = drv: let
16+ drv' = justStaticExecutables drv;
17+ in if pkgs.stdenv.isDarwin
18+ then removeConfigureFlag drv' "--ghc-option=-optl=-dead_strip"
19+ else drv';
20+
1521
1622 addOptparseApplicativeCompletionScripts = exeName: pkg: overrideCabal pkg (drv: {
1723 postInstall = (drv.postInstall or "") + ''