about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorTravis Whitaker <pi.boy.travis@gmail.com>2019-08-21 19:38:03 -0700
committerPeter Simons <simons@cryp.to>2019-09-03 09:23:28 +0200
commitf1e3a6961ba661c219b6aaf0997c3c893e1f98ed (patch)
treebe8651f333565f1c0267ab7c412b21644bf5bc34 /pkgs/development/haskell-modules
parentd00582b437924da25fa3699383b918985dbc7641 (diff)
downloadnixlib-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar
nixlib-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar.gz
nixlib-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar.bz2
nixlib-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar.lz
nixlib-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar.xz
nixlib-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar.zst
nixlib-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.zip
Pass hoogle-local's buildCommand as a file.
This is necessary when a very large number of packages are included in the
package database. Without this change, setting up the build environment will
fail, since the environment will be too large.

This simply applies the technique mentioned in
https://github.com/NixOS/nixpkgs/issues/25057 to solve this problem.
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/hoogle.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/hoogle.nix b/pkgs/development/haskell-modules/hoogle.nix
index c7fbab6ab88c..0bb930a8bb3a 100644
--- a/pkgs/development/haskell-modules/hoogle.nix
+++ b/pkgs/development/haskell-modules/hoogle.nix
@@ -57,11 +57,11 @@ stdenv.mkDerivation {
   name = "hoogle-local-0.1";
   buildInputs = [ghc hoogle];
 
-  phases = [ "buildPhase" ];
-
   inherit docPackages;
 
-  buildPhase = ''
+  passAsFile = ["buildCommand"];
+
+  buildCommand = ''
     ${lib.optionalString (packages != [] -> docPackages == [])
        ("echo WARNING: localHoogle package list empty, even though"
        + " the following were specified: "