diff options
author | Travis Whitaker <pi.boy.travis@gmail.com> | 2019-08-21 19:38:03 -0700 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2019-09-03 09:23:28 +0200 |
commit | f1e3a6961ba661c219b6aaf0997c3c893e1f98ed (patch) | |
tree | be8651f333565f1c0267ab7c412b21644bf5bc34 /pkgs/development/haskell-modules/hoogle.nix | |
parent | d00582b437924da25fa3699383b918985dbc7641 (diff) | |
download | nixpkgs-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar nixpkgs-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar.gz nixpkgs-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar.bz2 nixpkgs-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar.lz nixpkgs-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar.xz nixpkgs-f1e3a6961ba661c219b6aaf0997c3c893e1f98ed.tar.zst nixpkgs-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/hoogle.nix')
-rw-r--r-- | pkgs/development/haskell-modules/hoogle.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/hoogle.nix b/pkgs/development/haskell-modules/hoogle.nix index c7fbab6ab88..0bb930a8bb3 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: " |