copy-tarballs.pl: Revive extracting all tarballs from release.nix

This commit is contained in:
Eelco Dolstra
2015-12-16 15:38:59 +01:00
parent 493f633002
commit 7cd3d502bb
6 changed files with 47 additions and 9 deletions
+9 -2
View File
@@ -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