diff --git a/pkgs/development/haskell-modules/make-package-set.nix b/pkgs/development/haskell-modules/make-package-set.nix index e9ce4f127051..705a5b3e96f0 100644 --- a/pkgs/development/haskell-modules/make-package-set.nix +++ b/pkgs/development/haskell-modules/make-package-set.nix @@ -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;