summary refs log tree commit diff
path: root/pkgs/development/go-modules/generic/default.nix
diff options
context:
space:
mode:
authorChris Hodapp <hodapp87@gmail.com>2017-04-21 20:21:31 -0400
committerChris Hodapp <hodapp87@gmail.com>2017-04-30 08:54:54 -0400
commitcc4f861f8263b0a1ad6c947f0db58e781c7f6391 (patch)
treec1e1156e838e96f99ed116249254d023a565defc /pkgs/development/go-modules/generic/default.nix
parent2f481960cfdca0f4bb135be45819c90e269f0d96 (diff)
downloadnixpkgs-cc4f861f8263b0a1ad6c947f0db58e781c7f6391.tar
nixpkgs-cc4f861f8263b0a1ad6c947f0db58e781c7f6391.tar.gz
nixpkgs-cc4f861f8263b0a1ad6c947f0db58e781c7f6391.tar.bz2
nixpkgs-cc4f861f8263b0a1ad6c947f0db58e781c7f6391.tar.lz
nixpkgs-cc4f861f8263b0a1ad6c947f0db58e781c7f6391.tar.xz
nixpkgs-cc4f861f8263b0a1ad6c947f0db58e781c7f6391.tar.zst
nixpkgs-cc4f861f8263b0a1ad6c947f0db58e781c7f6391.zip
cloud-print-connector: init at unstable-2017-01-19
This adds a fairly basic build for just the binaries for the Google
Cloud Print CUPS connector (gcp-cups-connector), and gcp-connector-util
to set it up in the first place. In the future I would like to
streamline the configuration more and make gcp-cups-connector a
proper NixOS service - as right now it must be run by hand.
Diffstat (limited to 'pkgs/development/go-modules/generic/default.nix')
-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 adac53f7828..731196d31a1 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 }: