cabal-install: link top-level variant of this tool statically

The advantage is that the closure no longer depends on the version of
GHC that was used to compile the tool.
This commit is contained in:
Peter Simons 2016-05-06 12:02:04 +02:00
parent 85aa0ea16b
commit c53f963c1e

View file

@ -4426,8 +4426,10 @@ in
overrides = config.haskellPackageOverrides or (self: super: {});
};
inherit (self.haskellPackages) ghc cabal-install;
inherit (self.haskellPackages) ghc;
cabal-install = haskell.lib.disableSharedExecutables haskellPackages.cabal-install;
stack = haskell.lib.overrideCabal haskellPackages.stack (drv: {
enableSharedExecutables = false;
isLibrary = false;