aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/go-modules
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2017-05-20 18:23:12 +0100
committerGitHub <noreply@github.com>2017-05-20 18:23:12 +0100
commit2a42b451059944f59021306af43fb035463290d1 (patch)
treee5b46a25cde7ac579ed3e53ce996e2e380fd6af0 /pkgs/development/go-modules
parent56835b1eeaa420b40917e8f5303ee834bf8fa098 (diff)
parentf3dce2cbda6e62940c606055d5fcb46b17fb436b (diff)
Merge pull request #25103 from Hodapp87/google_cloud_print
cloud-print-connector: init at unstable-2017-01-19
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r--pkgs/development/go-modules/generic/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix
index b17395f6d87e..b54f07fb0047 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, fetchhg, rsync, removeReferencesTo }:
+{ go, govers, parallel, lib, fetchgit, fetchhg, fetchbzr, rsync, removeReferencesTo }:
{ name, buildInputs ? [], nativeBuildInputs ? [], passthru ? {}, preFixup ? ""
@@ -54,7 +54,11 @@ let
fetchhg {
inherit (goDep.fetch) url rev sha256;
}
- else abort "Unrecognized package fetch type";
+ else if goDep.fetch.type == "bzr" then
+ fetchbzr {
+ inherit (goDep.fetch) url rev sha256;
+ }
+ else abort "Unrecognized package fetch type: ${goDep.fetch.type}";
};
importGodeps = { depsFile }: