1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

haskell-stack: add a top-level attribute 'stack', a space-efficient variant of 'haskellPackages.stack'

The "stack" closure does not include the stack library and therefore has
a much smaller closure, i.e. 17 MB instead of 1 GB.

Fixes https://github.com/NixOS/nixpkgs/issues/15216.
This commit is contained in:
Peter Simons 2016-05-04 16:16:17 +02:00
parent e5536b799a
commit f476d686e8

View file

@ -4371,11 +4371,20 @@ in
haskellPackages = haskell.packages.ghc7103.override {
overrides = config.haskellPackageOverrides or (self: super: {});
};
inherit (self.haskellPackages) ghc cabal-install stack;
inherit (self.haskellPackages) ghc cabal-install;
stack = haskell.lib.overrideCabal haskellPackages.stack (drv: {
enableSharedExecutables = false;
isLibrary = false;
doHaddock = false;
postFixup = "rm -rf $out/lib $out/nix-support $out/share/doc";
});
haxe = callPackage ../development/compilers/haxe {
inherit (ocamlPackages) camlp4;
};
hxcpp = callPackage ../development/compilers/haxe/hxcpp.nix { };
hhvm = callPackage ../development/compilers/hhvm { };