haskellPackages.callCabal2nix: Use stdenvNoCC

Delays C compiler realisation to the actual build, which is more
parallelizable; doesn't block the evaluator.
This commit is contained in:
Robert Hensing 2022-02-26 13:28:12 +01:00
parent 3473f50aff
commit 46bb6a78db

View file

@ -124,7 +124,7 @@ let
haskellSrc2nix = { name, src, sha256 ? null, extraCabal2nixOptions ? "" }:
let
sha256Arg = if sha256 == null then "--sha256=" else ''--sha256="${sha256}"'';
in buildPackages.stdenv.mkDerivation {
in buildPackages.stdenvNoCC.mkDerivation {
name = "cabal2nix-${name}";
nativeBuildInputs = [ buildPackages.cabal2nix-unwrapped ];
preferLocalBuild = true;