Added ssh support to fetchsvn
svn path=/nixpkgs/trunk/; revision=5734
This commit is contained in:
@@ -2,6 +2,10 @@ source $stdenv/setup
|
||||
|
||||
header "exporting $url (r$rev) into $out"
|
||||
|
||||
if test "$sshSupport"; then
|
||||
export SVN_SSH="$openssh/bin/ssh"
|
||||
fi
|
||||
|
||||
# Pipe the "p" character into Subversion to force it to accept the
|
||||
# server's certificate. This is perfectly safe: we don't care
|
||||
# whether the server is being spoofed --- only the cryptographic
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, subversion, nix}: {url, rev ? "HEAD", md5}:
|
||||
{stdenv, subversion, nix, sshSupport ? false, openssh ? null}: {url, rev ? "HEAD", md5}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "svn-export";
|
||||
@@ -12,5 +12,5 @@ stdenv.mkDerivation {
|
||||
outputHashMode = "recursive";
|
||||
outputHash = md5;
|
||||
|
||||
inherit url rev;
|
||||
inherit url rev sshSupport openssh;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user