diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2016-12-24 17:37:58 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2016-12-26 13:27:34 +0000 |
commit | 4541b1090491a7ab74d74a5ebee31bd3ccf1be63 (patch) | |
tree | 7e2f9b6e5793b11746cdcc59dec1864544efeb53 /pkgs/development/compilers/ghc | |
parent | d906fb2c9a9c542752c029e2585beb4dc8629292 (diff) | |
download | nixlib-4541b1090491a7ab74d74a5ebee31bd3ccf1be63.tar nixlib-4541b1090491a7ab74d74a5ebee31bd3ccf1be63.tar.gz nixlib-4541b1090491a7ab74d74a5ebee31bd3ccf1be63.tar.bz2 nixlib-4541b1090491a7ab74d74a5ebee31bd3ccf1be63.tar.lz nixlib-4541b1090491a7ab74d74a5ebee31bd3ccf1be63.tar.xz nixlib-4541b1090491a7ab74d74a5ebee31bd3ccf1be63.tar.zst nixlib-4541b1090491a7ab74d74a5ebee31bd3ccf1be63.zip |
Refactor ghcHEAD postPatch / preConfigure phases
This is for GHC developers using NixOS where patchShebangs is inconvenient as it dirties the tree but unnecessary for compilation.
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r-- | pkgs/development/compilers/ghc/head.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix index 0deabd0fa98d..0581038d18df 100644 --- a/pkgs/development/compilers/ghc/head.nix +++ b/pkgs/development/compilers/ghc/head.nix @@ -27,19 +27,18 @@ in stdenv.mkDerivation (rec { sha256 = "0rk6xy7kgxx849nprq1ji459p88nyy93236g841m5p6mdh7mmrcr"; }; - postPatch = '' + postPatch = "patchShebangs ."; + + preConfigure = '' echo ${version} >VERSION echo ${rev} >GIT_COMMIT_ID - patchShebangs . ./boot - ''; + '' + commonPreConfigure ; buildInputs = commonBuildInputs; enableParallelBuilding = true; - preConfigure = commonPreConfigure; - configureFlags = [ "CC=${stdenv.cc}/bin/cc" "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib" |