2019-02-03 16:30:27 +01:00
|
|
|
{stdenvNoCC, subversion, sshSupport ? true, openssh ? null, expect}:
|
2008-04-02 15:28:55 +02:00
|
|
|
{username, password, url, rev ? "HEAD", md5 ? "", sha256 ? ""}:
|
|
|
|
|
2017-03-13 13:31:44 +01:00
|
|
|
|
|
|
|
if md5 != "" then
|
|
|
|
throw "fetchsvnssh does not support md5 anymore, please use sha256"
|
|
|
|
else
|
2018-01-10 00:38:19 +01:00
|
|
|
stdenvNoCC.mkDerivation {
|
2008-04-02 15:28:55 +02:00
|
|
|
name = "svn-export-ssh";
|
|
|
|
builder = ./builder.sh;
|
2018-01-09 21:36:14 +01:00
|
|
|
nativeBuildInputs = [subversion expect];
|
2008-04-02 15:28:55 +02:00
|
|
|
|
2017-03-13 13:31:44 +01:00
|
|
|
outputHashAlgo = "sha256";
|
2008-04-02 15:28:55 +02:00
|
|
|
outputHashMode = "recursive";
|
2017-03-13 13:31:44 +01:00
|
|
|
outputHash = sha256;
|
|
|
|
|
2008-04-02 15:28:55 +02:00
|
|
|
sshSubversion = ./sshsubversion.exp;
|
2017-03-13 13:31:44 +01:00
|
|
|
|
2008-04-02 15:28:55 +02:00
|
|
|
inherit username password url rev sshSupport openssh;
|
|
|
|
}
|