2007-12-04 14:06:13 -08:00
|
|
|
{stdenv, subversion, nix, sshSupport ? false, openssh ? null}:
|
|
|
|
{url, rev ? "HEAD", md5 ? "", sha256 ? ""}:
|
2004-04-14 03:55:33 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "svn-export";
|
2003-11-25 09:38:48 -08:00
|
|
|
builder = ./builder.sh;
|
2004-04-14 03:55:33 -07:00
|
|
|
buildInputs = [subversion nix];
|
2005-02-22 08:27:28 -08:00
|
|
|
|
|
|
|
# Nix <= 0.7 compatibility.
|
2007-12-04 14:06:13 -08:00
|
|
|
/*id = if sha256 == "" then md5 else sha256;*/
|
2005-02-22 08:27:28 -08:00
|
|
|
|
2008-02-28 14:36:37 -08:00
|
|
|
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
|
2005-02-22 13:15:13 -08:00
|
|
|
outputHashMode = "recursive";
|
2008-02-28 14:36:37 -08:00
|
|
|
outputHash = if sha256 == "" then md5 else sha256;
|
2005-02-22 08:27:28 -08:00
|
|
|
|
2006-07-17 08:22:20 -07:00
|
|
|
inherit url rev sshSupport openssh;
|
2003-11-25 09:38:48 -08:00
|
|
|
}
|