mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
fetchsvnssh: support hash
attribute
This commit is contained in:
parent
a8c21f4c11
commit
30361c578f
@ -1,17 +1,19 @@
|
|||||||
{stdenvNoCC, subversion, sshSupport ? true, openssh ? null, expect}:
|
{lib, stdenvNoCC, subversion, sshSupport ? true, openssh ? null, expect}:
|
||||||
{username, password, url, rev ? "HEAD", sha256 ? ""}:
|
{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];
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation {
|
inherit outputHash outputHashAlgo;
|
||||||
name = "svn-export-ssh";
|
outputHashMode = "recursive";
|
||||||
builder = ./builder.sh;
|
|
||||||
nativeBuildInputs = [subversion expect];
|
|
||||||
|
|
||||||
outputHashAlgo = "sha256";
|
sshSubversion = ./sshsubversion.exp;
|
||||||
outputHashMode = "recursive";
|
|
||||||
outputHash = sha256;
|
|
||||||
|
|
||||||
sshSubversion = ./sshsubversion.exp;
|
inherit username password url rev sshSupport openssh;
|
||||||
|
}
|
||||||
inherit username password url rev sshSupport openssh;
|
)
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user