haskell infra: Use self.ghc
rather than closing over initial value
This commit is contained in:
parent
c923e938a3
commit
f379be939c
@ -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"
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user