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:
parent
e5536b799a
commit
f476d686e8
@ -4371,11 +4371,20 @@ in
|
|||||||
haskellPackages = haskell.packages.ghc7103.override {
|
haskellPackages = haskell.packages.ghc7103.override {
|
||||||
overrides = config.haskellPackageOverrides or (self: super: {});
|
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 {
|
haxe = callPackage ../development/compilers/haxe {
|
||||||
inherit (ocamlPackages) camlp4;
|
inherit (ocamlPackages) camlp4;
|
||||||
};
|
};
|
||||||
|
|
||||||
hxcpp = callPackage ../development/compilers/haxe/hxcpp.nix { };
|
hxcpp = callPackage ../development/compilers/haxe/hxcpp.nix { };
|
||||||
|
|
||||||
hhvm = callPackage ../development/compilers/hhvm { };
|
hhvm = callPackage ../development/compilers/hhvm { };
|
||||||
|
Loading…
Reference in New Issue
Block a user