* 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.
|
# hash of the output matters.
|
||||||
echo 'p' | svn export -r "$rev" "$url" $out
|
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
|
stopNest
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
{stdenv, subversion, nix, sshSupport ? false, openssh ? null}:
|
{stdenv, subversion, sshSupport ? false, openssh ? null}:
|
||||||
{url, rev ? "HEAD", md5 ? "", sha256 ? ""}:
|
{url, rev ? "HEAD", md5 ? "", sha256 ? ""}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "svn-export";
|
name = "svn-export";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
buildInputs = [subversion nix];
|
buildInputs = [subversion];
|
||||||
|
|
||||||
# Nix <= 0.7 compatibility.
|
|
||||||
/*id = if sha256 == "" then md5 else sha256;*/
|
|
||||||
|
|
||||||
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
|
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
|
@ -305,7 +305,7 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
fetchsvn = import ../build-support/fetchsvn {
|
fetchsvn = import ../build-support/fetchsvn {
|
||||||
inherit stdenv subversion nix openssh;
|
inherit stdenv subversion openssh;
|
||||||
sshSupport = true;
|
sshSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user