From fc9bc9eba5c4017fbaca19c32f021ee5e976d89c Mon Sep 17 00:00:00 2001 From: Kamil Chmielewski Date: Sun, 5 Jun 2016 14:58:08 +0200 Subject: [PATCH] goDeps: support for mercurial repos --- pkgs/development/go-modules/generic/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 4f4fa327517..cc355c6e5d7 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -1,4 +1,4 @@ -{ go, govers, parallel, lib, fetchgit }: +{ go, govers, parallel, lib, fetchgit, fetchhg }: { name, buildInputs ? [], nativeBuildInputs ? [], passthru ? {}, preFixup ? "" @@ -48,7 +48,11 @@ let fetchgit { inherit (goDep.fetch) url rev sha256; } - else {}; + else if goDep.fetch.type == "hg" then + fetchhg { + inherit (goDep.fetch) url rev sha256; + } + else {}; }; importGodeps = { depsFile, filterPackages ? [] }: