* fetchsvn: Nix already checks the hash, no need for the builder to do it.
svn path=/nixpkgs/trunk/; revision=10896
This commit is contained in:
parent
afe69eecbe
commit
50348f5258
@ -12,10 +12,4 @@ fi
|
||||
# hash of the output matters.
|
||||
echo 'p' | svn export -r "$rev" "$url" $out
|
||||
|
||||
actual=$(nix-hash $out --type "$outputHashAlgo")
|
||||
if test "$actual" != "$outputHash"; then
|
||||
echo "hash is $actual, expected $outputHash" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
stopNest
|
||||
|
@ -1,13 +1,10 @@
|
||||
{stdenv, subversion, nix, sshSupport ? false, openssh ? null}:
|
||||
{stdenv, subversion, sshSupport ? false, openssh ? null}:
|
||||
{url, rev ? "HEAD", md5 ? "", sha256 ? ""}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "svn-export";
|
||||
builder = ./builder.sh;
|
||||
buildInputs = [subversion nix];
|
||||
|
||||
# Nix <= 0.7 compatibility.
|
||||
/*id = if sha256 == "" then md5 else sha256;*/
|
||||
buildInputs = [subversion];
|
||||
|
||||
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
|
||||
outputHashMode = "recursive";
|
||||
|
@ -305,7 +305,7 @@ rec {
|
||||
};
|
||||
|
||||
fetchsvn = import ../build-support/fetchsvn {
|
||||
inherit stdenv subversion nix openssh;
|
||||
inherit stdenv subversion openssh;
|
||||
sshSupport = true;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user