diff options
Diffstat (limited to 'pkgs/top-level/release-lib.nix')
-rw-r--r-- | pkgs/top-level/release-lib.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/top-level/release-lib.nix b/pkgs/top-level/release-lib.nix index 15380ea43c8..2f0296223a0 100644 --- a/pkgs/top-level/release-lib.nix +++ b/pkgs/top-level/release-lib.nix @@ -1,4 +1,8 @@ -{ supportedSystems, packageSet ? (import ./all-packages.nix), allowTexliveBuilds ? false }: +{ supportedSystems +, packageSet ? (import ./all-packages.nix) +, allowTexliveBuilds ? false +, scrubJobs ? true +}: with import ../../lib; @@ -14,6 +18,9 @@ rec { pkgs = pkgsFor "x86_64-linux"; + hydraJob' = if scrubJobs then hydraJob else id; + + /* !!! Hack: poor man's memoisation function. Necessary to prevent Nixpkgs from being evaluated again and again for every job/platform pair. */ @@ -48,7 +55,7 @@ rec { a derivation for each supported platform, i.e. ‘{ x86_64-linux = f pkgs_x86_64_linux; i686-linux = f pkgs_i686_linux; ... }’. */ testOn = systems: f: genAttrs - (filter (x: elem x supportedSystems) systems) (system: hydraJob (f (pkgsFor system))); + (filter (x: elem x supportedSystems) systems) (system: hydraJob' (f (pkgsFor system))); /* Similar to the testOn function, but with an additional |