haskellPackages.cabalSdist: remove ghc workaround

The workaround added in https://github.com/NixOS/nixpkgs/pull/187726
for https://github.com/haskell/cabal/issues/8352 is no longer needed.

cabal-install 3.8.1.0 introduced a regression where `cabal sdist`
required GHC to be in PATH. This was fixed in cabal-install 3.10.1.0
(https://github.com/haskell/cabal/pull/8358), and nixpkgs now uses
cabal-install 3.16.0.0.

tests.haskell.cabalSdist passes.
This commit is contained in:
Robert Hensing
2025-11-21 19:16:27 +01:00
parent 0f6e6ecec6
commit cb7163d8f3
@@ -674,10 +674,6 @@ package-set { inherit pkgs lib callPackage; } self
inherit src;
nativeBuildInputs = [
buildHaskellPackages.cabal-install
# TODO after https://github.com/haskell/cabal/issues/8352
# remove ghc
self.ghc
];
dontUnpack = false;
}