Commit dc8032e2 authored by Matthew Pickering's avatar Matthew Pickering Committed by Andrey Mokhov

Extend ghcHEAD derivation rather than make a new derivation (#486)

This allows you to use configurePhase/buildPhase as usual and
set the right configureFlags rather than end up with a broken
executable.
parent 4499b294
......@@ -16,6 +16,7 @@ let
|| baseName == ".stack-work"
|| baseName == "config.log"
|| baseName == "config.status"
|| baseName == "shell.nix"
|| nixpkgs.lib.hasSuffix ".sh" baseName
|| !(nixpkgs.lib.cleanSourceFilter path type)) ;
......@@ -39,23 +40,12 @@ let
}; };
in
nixpkgs.stdenv.mkDerivation {
name = "ghc-dev";
buildInputs = [
nixpkgs.lib.overrideDerivation nixpkgs.haskell.packages.ghcHEAD.ghc
(drv: {
name = "ghc-dev";
buildInputs = drv.buildInputs ++ [
hadrianPackages.hadrian
nixpkgs.haskell.compiler.ghc821
haskellPackages.alex
haskellPackages.happy
nixpkgs.python3
nixpkgs.git
nixpkgs.autoconf
nixpkgs.automake
nixpkgs.perl
nixpkgs.gcc
nixpkgs.python3Packages.sphinx
nixpkgs.ncurses
nixpkgs.m4
nixpkgs.gmp
nixpkgs.file ];
}
nixpkgs.arcanist
];
})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment