* Add a fetchhg builder to checkout mercurial repositories.

svn path=/nixpkgs/trunk/; revision=18347
nixos-19.03
Nicolas Pierron 13 years ago
parent 7482474aef
commit c8cb5210fb
  1. 9
      pkgs/build-support/fetchhg/builder.sh
  2. 3
      pkgs/build-support/fetchhg/default.nix
  3. 1
      pkgs/top-level/all-packages.nix

@ -0,0 +1,9 @@
source $stdenv/setup
header "getting $url${tag:+ ($tag)} into $out"
hg clone ${tag:+-r "$tag"} "$url" "$out"
rm -rf "$out/.hg"
stopNest

@ -1,7 +1,8 @@
{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 = "fetchdarcs";
name = "fetchhg";
builder = ./builder.sh;
buildInputs = [mercurial nix];

@ -290,7 +290,6 @@ let
sshSupport = true;
};
# TODO do some testing
fetchhg = import ../build-support/fetchhg {
inherit stdenv mercurial nix;
};

Loading…
Cancel
Save