fetchsvnssh: support hash attribute

This commit is contained in:
nicoo 2024-09-15 22:36:54 +00:00
parent a8c21f4c11
commit 30361c578f

View File

@ -1,17 +1,19 @@
{stdenvNoCC, subversion, sshSupport ? true, openssh ? null, expect}:
{username, password, url, rev ? "HEAD", sha256 ? ""}:
{lib, stdenvNoCC, subversion, sshSupport ? true, openssh ? null, expect}:
{username, password
, url, rev ? "HEAD"
, outputHash ? lib.fakeHash, outputHashAlgo ? null}:
lib.fetchers.withNormalizedHash { } (
stdenvNoCC.mkDerivation {
name = "svn-export-ssh";
builder = ./builder.sh;
nativeBuildInputs = [subversion expect];
outputHashAlgo = "sha256";
inherit outputHash outputHashAlgo;
outputHashMode = "recursive";
outputHash = sha256;
sshSubversion = ./sshsubversion.exp;
inherit username password url rev sshSupport openssh;
}
)