Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,18 @@ self: super: {
};
in
{
cabal-install = super.cabal-install.overrideScope cabalInstallOverlay;
cabal-install =
let cabal-install = super.cabal-install.overrideScope cabalInstallOverlay;
scope = cabal-install.scope;
in overrideCabal (old: {
postInstall = ''
${old.postInstall or ""}
remove-references-to -t ${scope.ghc} "$out/bin/.cabal-wrapped"
remove-references-to -t ${scope.HTTP} "$out/bin/.cabal-wrapped"
remove-references-to -t ${scope.Cabal} "$out/bin/.cabal-wrapped"
'';
}) cabal-install;
Comment on lines +59 to +69
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a cleaner way to do this?


cabal-install-solver = super.cabal-install-solver.overrideScope cabalInstallOverlay;

# Needs cabal-install >= 3.8 /as well as/ matching Cabal
Expand Down