haskell-modules/generic-builder.nix: add gcc to generated shell

Fixes #335387
This commit is contained in:
maralorn 2024-08-21 17:05:35 +02:00
parent c0e8cb5d87
commit 025cc46ce3
No known key found for this signature in database

View File

@ -1,5 +1,5 @@
{ lib, stdenv, buildPackages, buildHaskellPackages, ghc
, jailbreak-cabal, hscolour, cpphs, runCommand
, jailbreak-cabal, hscolour, cpphs, runCommandCC
, ghcWithHoogle, ghcWithPackages
, nodejs
}:
@ -790,7 +790,7 @@ stdenv.mkDerivation ({
lib.optionals (!isCross) setupHaskellDepends);
ghcCommandCaps = lib.toUpper ghcCommand';
in runCommand name {
in runCommandCC name {
inherit shellHook;
depsBuildBuild = lib.optional isCross ghcEnvForBuild;