blob: 3079588dca37c9331e3b7c64c58f293ce77d2eec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
. $stdenv/setup
header "exporting $url (r$rev) into $out"
prefetch=$(dirname $out)/svn-checkout-tmp-$md5
echo $prefetch
if test -e "$prefetch"; then
mv $prefetch $out
else
svn export -r "$rev" "$url" $out
fi
actual=$(nix-hash $out)
if test "$actual" != "$md5"; then
echo "hash is $actual, expected $md5" >&2
exit 1
fi
stopNest
|