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

stdenv.mkDerivation {
  name = "fetchdarcs";
  builder = ./builder.sh;
  buildInputs = [mercurial nix];

  # Nix <= 0.7 compatibility.
  id = md5;

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