diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2017-09-10 18:29:27 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2018-01-21 23:27:38 -0500 |
commit | 5a6b6b4ac56f1731abfbc48c7506fecf628a84d7 (patch) | |
tree | 5a570889c5eb7413f409f3e979b3d497dd1257a2 /pkgs/development/compilers/ghc/8.0.2.nix | |
parent | 4532826e99e1d0eda2044189538a99a0ac458af4 (diff) | |
download | nixpkgs-5a6b6b4ac56f1731abfbc48c7506fecf628a84d7.tar nixpkgs-5a6b6b4ac56f1731abfbc48c7506fecf628a84d7.tar.gz nixpkgs-5a6b6b4ac56f1731abfbc48c7506fecf628a84d7.tar.bz2 nixpkgs-5a6b6b4ac56f1731abfbc48c7506fecf628a84d7.tar.lz nixpkgs-5a6b6b4ac56f1731abfbc48c7506fecf628a84d7.tar.xz nixpkgs-5a6b6b4ac56f1731abfbc48c7506fecf628a84d7.tar.zst nixpkgs-5a6b6b4ac56f1731abfbc48c7506fecf628a84d7.zip |
ghc: Normalize derivations a bit before cross
These changes will affect the final derivation
Diffstat (limited to 'pkgs/development/compilers/ghc/8.0.2.nix')
-rw-r--r-- | pkgs/development/compilers/ghc/8.0.2.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/compilers/ghc/8.0.2.nix b/pkgs/development/compilers/ghc/8.0.2.nix index bb706aa6bbc..51e60419025 100644 --- a/pkgs/development/compilers/ghc/8.0.2.nix +++ b/pkgs/development/compilers/ghc/8.0.2.nix @@ -21,6 +21,12 @@ let targetPrefix = stdenv.lib.optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-"; + + buildMK = stdenv.lib.optionalString enableIntegerSimple '' + INTEGER_LIBRARY = integer-simple + '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) '' + BuildFlavour = perf-cross + ''; in stdenv.mkDerivation rec { version = "8.0.2"; @@ -42,13 +48,12 @@ stdenv.mkDerivation rec { outputs = [ "out" "man" "doc" ]; preConfigure = '' + echo "${buildMK}" > mk/build.mk sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure '' + stdenv.lib.optionalString (!stdenv.isDarwin) '' - export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}" + export NIX_LDFLAGS+=" -rpath $out/lib/ghc-${version}" '' + stdenv.lib.optionalString stdenv.isDarwin '' export NIX_LDFLAGS+=" -no_dtrace_dof" - '' + stdenv.lib.optionalString enableIntegerSimple '' - echo "INTEGER_LIBRARY=integer-simple" > mk/build.mk ''; configureFlags = [ |