diff options
author | Shea Levy <shea@shealevy.com> | 2017-01-06 22:10:29 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2017-01-06 22:10:29 -0500 |
commit | 845dd121f8922dd8171ded470ef302c3602de9ea (patch) | |
tree | 9423c0b9bf9aa2d589c2ee3753c592cd004a10b0 /pkgs/development/compilers/ghc | |
parent | c5c7911ac22298a95a4128127b3e1427deb98fdc (diff) | |
download | nixlib-845dd121f8922dd8171ded470ef302c3602de9ea.tar nixlib-845dd121f8922dd8171ded470ef302c3602de9ea.tar.gz nixlib-845dd121f8922dd8171ded470ef302c3602de9ea.tar.bz2 nixlib-845dd121f8922dd8171ded470ef302c3602de9ea.tar.lz nixlib-845dd121f8922dd8171ded470ef302c3602de9ea.tar.xz nixlib-845dd121f8922dd8171ded470ef302c3602de9ea.tar.zst nixlib-845dd121f8922dd8171ded470ef302c3602de9ea.zip |
ghc-head: Put ./boot into commonPreConfigure
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r-- | pkgs/development/compilers/ghc/head.nix | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix index 081f554e06bf..971365eda48f 100644 --- a/pkgs/development/compilers/ghc/head.nix +++ b/pkgs/development/compilers/ghc/head.nix @@ -8,8 +8,12 @@ let commonBuildInputs = [ ghc perl autoconf automake happy alex python3 ]; version = "8.1.20170106"; + rev = "b4f2afe70ddbd0576b4eba3f82ba1ddc52e9b3bd"; commonPreConfigure = '' + echo ${version} >VERSION + echo ${rev} >GIT_COMMIT_ID + ./boot 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}" @@ -17,9 +21,8 @@ let export NIX_LDFLAGS+=" -no_dtrace_dof" ''; in stdenv.mkDerivation (rec { - inherit version; + inherit version rev; name = "ghc-${version}"; - rev = "b4f2afe70ddbd0576b4eba3f82ba1ddc52e9b3bd"; src = fetchgit { url = "git://git.haskell.org/ghc.git"; @@ -29,11 +32,7 @@ in stdenv.mkDerivation (rec { postPatch = "patchShebangs ."; - preConfigure = '' - echo ${version} >VERSION - echo ${rev} >GIT_COMMIT_ID - ./boot - '' + commonPreConfigure ; + preConfigure = commonPreConfigure; buildInputs = commonBuildInputs; |