2008-04-02 14:28:55 +01:00
|
|
|
{stdenv, subversion, sshSupport ? false, openssh ? null, expect}:
|
|
|
|
{username, password, url, rev ? "HEAD", md5 ? "", sha256 ? ""}:
|
|
|
|
|
2017-03-13 12:31:44 +00:00
|
|
|
|
|
|
|
if md5 != "" then
|
|
|
|
throw "fetchsvnssh does not support md5 anymore, please use sha256"
|
|
|
|
else
|
2008-04-02 14:28:55 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "svn-export-ssh";
|
|
|
|
builder = ./builder.sh;
|
|
|
|
buildInputs = [subversion expect];
|
|
|
|
|
2017-03-13 12:31:44 +00:00
|
|
|
outputHashAlgo = "sha256";
|
2008-04-02 14:28:55 +01:00
|
|
|
outputHashMode = "recursive";
|
2017-03-13 12:31:44 +00:00
|
|
|
outputHash = sha256;
|
|
|
|
|
2008-04-02 14:28:55 +01:00
|
|
|
sshSubversion = ./sshsubversion.exp;
|
2017-03-13 12:31:44 +00:00
|
|
|
|
2008-04-02 14:28:55 +01:00
|
|
|
inherit username password url rev sshSupport openssh;
|
|
|
|
}
|