Added ssh support to fetchsvn
svn path=/nixpkgs/trunk/; revision=5734
This commit is contained in:
parent
a908e6a4de
commit
7478e8ef87
@ -2,6 +2,10 @@ source $stdenv/setup
|
|||||||
|
|
||||||
header "exporting $url (r$rev) into $out"
|
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
|
# Pipe the "p" character into Subversion to force it to accept the
|
||||||
# server's certificate. This is perfectly safe: we don't care
|
# server's certificate. This is perfectly safe: we don't care
|
||||||
# whether the server is being spoofed --- only the cryptographic
|
# 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 {
|
stdenv.mkDerivation {
|
||||||
name = "svn-export";
|
name = "svn-export";
|
||||||
@ -12,5 +12,5 @@ stdenv.mkDerivation {
|
|||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHash = md5;
|
outputHash = md5;
|
||||||
|
|
||||||
inherit url rev;
|
inherit url rev sshSupport openssh;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,8 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
fetchsvn = (import ../build-support/fetchsvn) {
|
fetchsvn = (import ../build-support/fetchsvn) {
|
||||||
inherit stdenv subversion nix;
|
inherit stdenv subversion nix openssh;
|
||||||
|
sshSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
fetchcvs = (import ../build-support/fetchcvs) {
|
fetchcvs = (import ../build-support/fetchcvs) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user