Merge pull request #165337 from Profpatsch/hoogle-local-really-local

haskellPackages.hoogleLocal: build database locally
This commit is contained in:
maralorn 2022-03-22 23:15:17 +01:00 committed by GitHub
commit 1c77127651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,13 @@ buildPackages.stdenv.mkDerivation {
name = "hoogle-with-packages";
buildInputs = [ghc hoogle];
# compiling databases takes less time than copying the results
# between machines.
preferLocalBuild = true;
# Plus, you need a complete database for each possible combination
# of dependencies, caching them does not make sense.
allowSubstitutes = false;
inherit docPackages;
passAsFile = ["buildCommand"];