mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
99d512a41f
svn path=/nixpkgs/trunk/; revision=11455
16 lines
494 B
Nix
16 lines
494 B
Nix
{stdenv, subversion, sshSupport ? false, openssh ? null, expect}:
|
|
{username, password, url, rev ? "HEAD", md5 ? "", sha256 ? ""}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "svn-export-ssh";
|
|
builder = ./builder.sh;
|
|
buildInputs = [subversion expect];
|
|
|
|
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = if sha256 == "" then md5 else sha256;
|
|
|
|
sshSubversion = ./sshsubversion.exp;
|
|
|
|
inherit username password url rev sshSupport openssh;
|
|
}
|