mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
677f91a6d1
svn path=/nixpkgs/trunk/; revision=15595
14 lines
356 B
Nix
14 lines
356 B
Nix
{stdenv, darcs, nix}: {url, tag ? null, context ? null, md5 ? "", sha256 ? ""}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "fetchdarcs";
|
|
builder = ./builder.sh;
|
|
buildInputs = [darcs];
|
|
|
|
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = if sha256 == "" then md5 else sha256;
|
|
|
|
inherit url tag context;
|
|
}
|