Automatically set nix.nrBuildUsers to at least nix.maxJobs

This commit is contained in:
Eelco Dolstra
2015-02-16 11:57:36 +01:00
parent 5a0208d117
commit 5d7000df68
2 changed files with 10 additions and 10 deletions

View File

@@ -47,7 +47,11 @@ rec {
readFile ../.version
+ (if pathExists suffixFile then readFile suffixFile else "pre-git");
# Whether we're being called by nix-shell. This is useful to
# Whether we're being called by nix-shell.
inNixShell = builtins.getEnv "IN_NIX_SHELL" == "1";
# Return minimum/maximum of two numbers.
min = x: y: if x < y then x else y;
max = x: y: if x > y then x else y;
}