2019-02-03 15:30:27 +00:00
|
|
|
{stdenvNoCC, subversion, sshSupport ? true, openssh ? null, expect}:
|
2008-04-02 13:28:55 +00:00
|
|
|
{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
|
2018-01-09 23:38:19 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
2008-04-02 13:28:55 +00:00
|
|
|
name = "svn-export-ssh";
|
|
|
|
builder = ./builder.sh;
|
2018-01-09 20:36:14 +00:00
|
|
|
nativeBuildInputs = [subversion expect];
|
2008-04-02 13:28:55 +00:00
|
|
|
|
2017-03-13 12:31:44 +00:00
|
|
|
outputHashAlgo = "sha256";
|
2008-04-02 13:28:55 +00:00
|
|
|
outputHashMode = "recursive";
|
2017-03-13 12:31:44 +00:00
|
|
|
outputHash = sha256;
|
|
|
|
|
2008-04-02 13:28:55 +00:00
|
|
|
sshSubversion = ./sshsubversion.exp;
|
2017-03-13 12:31:44 +00:00
|
|
|
|
2008-04-02 13:28:55 +00:00
|
|
|
inherit username password url rev sshSupport openssh;
|
|
|
|
}
|