13 lines
357 B
Nix
13 lines
357 B
Nix
{ ghcSrc, pkgs }:
|
|
let
|
|
ghcOverride = self: super: {
|
|
ghc = super.ghc.overrideDerivation (old: {
|
|
src = ghcSrc;
|
|
# Autotools need git to find the rev of the local ghc git repo.
|
|
nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.git ];
|
|
});
|
|
};
|
|
in self: super: {
|
|
customGhcHEAD = super.haskell.packages.ghcHEAD.extend ghcOverride;
|
|
}
|