Added ssh support to fetchsvn

svn path=/nixpkgs/trunk/; revision=5734
This commit is contained in:
Martin Bravenboer 2006-07-17 15:22:20 +00:00
parent a908e6a4de
commit 7478e8ef87
3 changed files with 8 additions and 3 deletions

View file

@ -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

View file

@ -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;
}

View file

@ -73,7 +73,8 @@ rec {
};
fetchsvn = (import ../build-support/fetchsvn) {
inherit stdenv subversion nix;
inherit stdenv subversion nix openssh;
sshSupport = true;
};
fetchcvs = (import ../build-support/fetchcvs) {