summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-12-16 13:59:02 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-12-16 15:38:59 +0100
commit7cd3d502bb19a95bca0137e6d81f65da29ed4092 (patch)
treef5f2747c8333f09b7e5d739fe590ccc23b92aeb2 /pkgs
parent493f633002e4044752a4384e765e41bd850b22ff (diff)
copy-tarballs.pl: Revive extracting all tarballs from release.nix
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/make-tarball.nix12
-rw-r--r--pkgs/top-level/release-lib.nix11
-rw-r--r--pkgs/top-level/release.nix3
3 files changed, 21 insertions, 5 deletions
diff --git a/pkgs/top-level/make-tarball.nix b/pkgs/top-level/make-tarball.nix
index fdd8fb0ef7db..c14f94d95fd7 100644
--- a/pkgs/top-level/make-tarball.nix
+++ b/pkgs/top-level/make-tarball.nix
@@ -14,7 +14,7 @@ releaseTools.sourceTarball rec {
version = builtins.readFile ../../.version;
versionSuffix = "pre${toString nixpkgs.revCount}.${nixpkgs.shortRev}";
- buildInputs = [ nix ];
+ buildInputs = [ nix jq ];
configurePhase = ''
eval "$preConfigure"
@@ -83,7 +83,15 @@ releaseTools.sourceTarball rec {
stopNest
header "checking find-tarballs.nix"
- nix-instantiate --eval --strict --show-trace ./maintainers/scripts/find-tarballs.nix > /dev/null
+ nix-instantiate --eval --strict --show-trace --json \
+ ./maintainers/scripts/find-tarballs.nix \
+ --arg expr 'import ./maintainers/scripts/all-tarballs.nix' > $TMPDIR/tarballs.json
+ nrUrls=$(jq -r '.[].url' < $TMPDIR/tarballs.json | wc -l)
+ echo "found $nrUrls URLs"
+ if [ "$nrUrls" -lt 10000 ]; then
+ echo "suspiciously low number of URLs"
+ exit 1
+ fi
stopNest
'';
diff --git a/pkgs/top-level/release-lib.nix b/pkgs/top-level/release-lib.nix
index 15380ea43c8e..2f0296223a0e 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
diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix
index d0c5faf823a7..c55f8f0825f6 100644
--- a/pkgs/top-level/release.nix
+++ b/pkgs/top-level/release.nix
@@ -13,9 +13,10 @@
, officialRelease ? false
, # The platforms for which we build Nixpkgs.
supportedSystems ? [ "x86_64-linux" "i686-linux" "x86_64-darwin" ]
+, scrubJobs ? true
}:
-with import ./release-lib.nix { inherit supportedSystems; };
+with import ./release-lib.nix { inherit supportedSystems scrubJobs; };
let