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

hscolour-bootstrap: allow setting RTS options for the hscolour binary we use to generate our documentation

Other tools like hsc2hs or haddock allows this, too, and some tools explicitly
set memory limits on these tools during the build (i.e. llvm-general-pure) by
exposing a GHCRTS environment variable. See [1] for a concrete example of this
issue.

[1] https://github.com/NixOS/nixpkgs/issues/2939
This commit is contained in:
Peter Simons 2014-06-16 15:37:25 +02:00
parent a83aa733c3
commit fa8f2ca300

View file

@ -2666,7 +2666,10 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
hscolour = callPackage ../development/tools/haskell/hscolour {};
hscolourBootstrap = self.hscolour.override {
cabal = self.cabal.override {
extension = self : super : { hyperlinkSource = false; };
extension = self : super : {
hyperlinkSource = false;
configureFlags = super.configureFlags or "" + " --ghc-option=-rtsopts";
};
};
};