2009-05-13 19:02:23 +00:00
|
|
|
{stdenv, darcs, nix}: {url, tag ? null, context ? null, md5 ? "", sha256 ? ""}:
|
2006-01-30 11:18:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "fetchdarcs";
|
|
|
|
builder = ./builder.sh;
|
2009-05-13 19:02:23 +00:00
|
|
|
buildInputs = [darcs];
|
2006-01-30 11:18:38 +00:00
|
|
|
|
2009-05-13 19:02:23 +00:00
|
|
|
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
|
2006-01-30 11:18:38 +00:00
|
|
|
outputHashMode = "recursive";
|
2009-05-13 19:02:23 +00:00
|
|
|
outputHash = if sha256 == "" then md5 else sha256;
|
2006-01-30 11:18:38 +00:00
|
|
|
|
2009-05-13 19:02:23 +00:00
|
|
|
inherit url tag context;
|
2006-01-30 11:18:38 +00:00
|
|
|
}
|