From ecd43e2bfe9bf845206da01c38c580bfae4660e2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 25 Apr 2009 18:34:11 +0000 Subject: * Updated the script that copies tarballs used in Nixpkgs to nixos.org/tarballs. It no longer greps the source for fetchurl calls, because a lot of URLs are now computed (e.g. "http://foo/${name}.tar.bz2"). So instead we evaluate the Nix expression with "nix-instantiate --xml --strict" and look for URLs in the result. Because I'm lazy the script no longer checks whether the hash of the download matches the hash in the expression. svn path=/nixpkgs/trunk/; revision=15310 --- maintainers/scripts/copy-tarballs.sh | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 maintainers/scripts/copy-tarballs.sh (limited to 'maintainers/scripts/copy-tarballs.sh') diff --git a/maintainers/scripts/copy-tarballs.sh b/maintainers/scripts/copy-tarballs.sh new file mode 100755 index 000000000000..76ced8a01d90 --- /dev/null +++ b/maintainers/scripts/copy-tarballs.sh @@ -0,0 +1,57 @@ +#! /bin/sh -e + +distDir=/data/webserver/tarballs + +urls=$(nix-instantiate --eval-only --xml --strict pkgs/top-level/build-for-release.nix \ + | grep -A2 'name="urls"' \ + | grep '