2019-02-03 18:30:27 +03:00
|
|
|
{stdenvNoCC, subversion, sshSupport ? true, openssh ? null, expect}:
|
2008-04-02 17:28:55 +04:00
|
|
|
{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
|
2018-01-10 02:38:19 +03:00
|
|
|
stdenvNoCC.mkDerivation {
|
2008-04-02 17:28:55 +04:00
|
|
|
name = "svn-export-ssh";
|
|
|
|
builder = ./builder.sh;
|
2018-01-09 23:36:14 +03:00
|
|
|
nativeBuildInputs = [subversion expect];
|
2008-04-02 17:28:55 +04:00
|
|
|
|
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;
|
|
|
|
}
|