diff options
Diffstat (limited to 'pkgs/build-support/fetchhg/default.nix')
-rw-r--r-- | pkgs/build-support/fetchhg/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchhg/default.nix b/pkgs/build-support/fetchhg/default.nix new file mode 100644 index 0000000000000..a7696458856ce --- /dev/null +++ b/pkgs/build-support/fetchhg/default.nix @@ -0,0 +1,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; +} |