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