diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-12-16 13:59:02 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-12-16 15:38:59 +0100 |
commit | 7cd3d502bb19a95bca0137e6d81f65da29ed4092 (patch) | |
tree | f5f2747c8333f09b7e5d739fe590ccc23b92aeb2 /pkgs/top-level/make-tarball.nix | |
parent | 493f633002e4044752a4384e765e41bd850b22ff (diff) |
copy-tarballs.pl: Revive extracting all tarballs from release.nix
Diffstat (limited to 'pkgs/top-level/make-tarball.nix')
-rw-r--r-- | pkgs/top-level/make-tarball.nix | 12 |
1 files changed, 10 insertions, 2 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 ''; |