diff options
author | Chris Hodapp <hodapp87@gmail.com> | 2017-04-21 20:21:31 -0400 |
---|---|---|
committer | Chris Hodapp <hodapp87@gmail.com> | 2017-04-30 08:54:54 -0400 |
commit | cc4f861f8263b0a1ad6c947f0db58e781c7f6391 (patch) | |
tree | c1e1156e838e96f99ed116249254d023a565defc /pkgs/servers/cloud-print-connector/default.nix | |
parent | 2f481960cfdca0f4bb135be45819c90e269f0d96 (diff) | |
download | nixpkgs-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/servers/cloud-print-connector/default.nix')
-rw-r--r-- | pkgs/servers/cloud-print-connector/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/servers/cloud-print-connector/default.nix b/pkgs/servers/cloud-print-connector/default.nix new file mode 100644 index 00000000000..634eeda298b --- /dev/null +++ b/pkgs/servers/cloud-print-connector/default.nix @@ -0,0 +1,34 @@ +# This file was generated by https://github.com/kamilchm/go2nix v1.2.0 +{ pkgs ? import <nixpkgs> {}, stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }: + +# TODO: Add a service for gcp-cups-connector and perhaps some other +# kind of configuration for the same thing that gcp-connector-util +# provides. + +buildGoPackage rec { + name = "cloud-print-connector-unstable-${version}"; + version = "2017-01-19"; + rev = "481ad139cc023a3ba65e769f08f277368fa8a5de"; + + goPackagePath = "github.com/google/cloud-print-connector"; + + src = fetchgit { + inherit rev; + url = "https://github.com/google/cloud-print-connector"; + sha256 = "0syq7s8qjspq33qd9ibvz0kwc1zxyh9jkhk7khdvgfv6n0dvql86"; + }; + + goDeps = ./deps.nix; + + buildInputs = [ pkgs.avahi pkgs.cups ]; + + meta = with stdenv.lib; { + description = "Share printers from your Windows, Linux, FreeBSD or OS X computer with ChromeOS and Android devices, using the Cloud Print Connector"; + homepage = https://github.com/google/cloud-print-connector; + license = licenses.bsd3; + maintainers = with maintainers; [ hodapp ]; + # TODO: Fix broken build on OS X. The GitHub presently lists the + # FreeBSD build as broken too, but this may change in the future. + platforms = platforms.linux; + }; +} |