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

# TODO: statically check if mercurial as the https support if the url starts woth https.
stdenv.mkDerivation {
  name = "fetchhg";
  builder = ./builder.sh;
  buildInputs = [mercurial nix];

  # Nix <= 0.7 compatibility.
  id = md5;

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