summary refs log tree commit diff
path: root/pkgs/build-support/fetchdarcs/default.nix
blob: b8dde18aa3e55c4952b1479f418b4ed335f40373 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{stdenv, darcs, nix}: {url, tag ? null, md5, partial ? true}:

stdenv.mkDerivation {
  name = "fetchdarcs";
  builder = ./builder.sh;
  buildInputs = [darcs nix];
  partial = if partial then "--partial" else "";

  # Nix <= 0.7 compatibility.
  id = md5;

  outputHashAlgo = "md5";
  outputHashMode = "recursive";
  outputHash = md5;
  
  inherit url tag;
}