about summary refs log tree commit diff
path: root/pkgs/build-support/fetchdarcs/default.nix
blob: 3c2e0524eea5ce131e91ba1e52d460703588e26b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{stdenv, darcs, nix}: {url, rev ? 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 rev context;
}