haskell infra: Use self.ghc rather than closing over initial value

This commit is contained in:
John Ericson 2018-06-07 14:27:44 -04:00
parent c923e938a3
commit f379be939c

View File

@ -102,8 +102,7 @@ let
callPackage = drv: args: callPackageWithScope defaultScope drv args;
withPackages = packages: buildPackages.callPackage ./with-packages-wrapper.nix {
inherit (self) llvmPackages;
inherit ghc;
inherit (self) ghc llvmPackages;
inherit packages;
};
@ -120,7 +119,7 @@ let
installPhase = ''
export HOME="$TMP"
mkdir -p "$out"
cabal2nix --compiler=${ghc.haskellCompilerName} --system=${hostPlatform.system} ${sha256Arg} "${src}" ${extraCabal2nixOptions} > "$out/default.nix"
cabal2nix --compiler=${self.ghc.haskellCompilerName} --system=${hostPlatform.system} ${sha256Arg} "${src}" ${extraCabal2nixOptions} > "$out/default.nix"
'';
};