Merge pull request #144330 from mkg20001/cloudprint

authored by

Maciej Krüger and committed by
GitHub
00021b86 fa0ddc3f

+1 -124
-64
pkgs/servers/cloud-print-connector/default.nix
··· 1 - { lib, buildGoPackage, fetchFromGitHub, avahi, cups, fetchpatch }: 2 - 3 - # TODO: Add a service for gcp-cups-connector and perhaps some other 4 - # kind of configuration for the same thing that gcp-connector-util 5 - # provides. 6 - 7 - # Mic92 has an example module: 8 - # - https://github.com/Mic92/dotfiles/blob/ba2a01144cfdc71c829d872a3fc816c64663ad7f/nixos/vms/matchbox/modules/cloud-print-connector.nix 9 - 10 - buildGoPackage rec { 11 - pname = "cloud-print-connector-unstable"; 12 - version = "1.16"; 13 - rev = "481ad139cc023a3ba65e769f08f277368fa8a5de"; 14 - 15 - goPackagePath = "github.com/google/cloud-print-connector"; 16 - 17 - subPackages = [ 18 - "gcp-connector-util" 19 - "gcp-cups-connector" 20 - ]; 21 - 22 - patches = [ 23 - (fetchpatch { 24 - # https://github.com/google/cloud-print-connector/pull/475 25 - url = "https://github.com/google/cloud-print-connector/commit/6a77c7c283b83cbcc9cbfab59710023cd09da3ed.patch"; 26 - sha256 = "054pi9nz402va95z5k6wq3dalnv5rcya078wa99p1kdwb7cqmrcq"; 27 - }) 28 - ]; 29 - 30 - src = fetchFromGitHub { 31 - owner = "google"; 32 - repo = "cloud-print-connector"; 33 - sha256 = "0z2xad4wsv962rc1rspghfcfkz4nj2j5l5cm7xyn6qmsag0m8y2x"; 34 - rev = "v${version}"; 35 - }; 36 - 37 - # To compute a new go2nix deps.go file, 38 - # change to the gcp-connector-util directory and create a nix-shell with avahi and 39 - # cups in it. 40 - 41 - # manually mirrored from launchpad because cloning failed due insecure http protocol 42 - # { 43 - # goPackagePath = "launchpad.net/go-xdg/v0"; 44 - # fetch = { 45 - # type = "git"; 46 - # url = "https://github.com/Mic92/go-xdg"; 47 - # rev = "b3fc6b3106d78701853b0caf62ebedae42769af2"; 48 - # sha256 = "0fd68kkxzxjanpgannpys962bxzqdf8c1qvzk687hv504a3dp76f"; 49 - # }; 50 - # } 51 - goDeps = ./deps.nix; 52 - 53 - buildInputs = [ avahi cups ]; 54 - 55 - meta = with lib; { 56 - description = "Share printers from your Windows, Linux, FreeBSD or macOS computer with ChromeOS and Android devices, using the Cloud Print Connector"; 57 - homepage = "https://github.com/google/cloud-print-connector"; 58 - license = licenses.bsd3; 59 - maintainers = with maintainers; [ hodapp ]; 60 - # TODO: Fix broken build on macOS. The GitHub presently lists the 61 - # FreeBSD build as broken too, but this may change in the future. 62 - platforms = platforms.unix; 63 - }; 64 - }
-58
pkgs/servers/cloud-print-connector/deps.nix
··· 1 - # This file was generated by https://github.com/kamilchm/go2nix v1.3.0 2 - [ 3 - { 4 - goPackagePath = "github.com/coreos/go-systemd"; 5 - fetch = { 6 - type = "git"; 7 - url = "https://github.com/coreos/go-systemd"; 8 - rev = "9002847aa1425fb6ac49077c0a630b3b67e0fbfd"; 9 - sha256 = "0d7xpcinzj18qc91rb6fjjrf9jnlzn775dqhp0n00n0gjg5rfksj"; 10 - }; 11 - } 12 - { 13 - goPackagePath = "github.com/satori/go.uuid"; 14 - fetch = { 15 - type = "git"; 16 - url = "https://github.com/satori/go.uuid"; 17 - rev = "b2ce2384e17bbe0c6d34077efa39dbab3e09123b"; 18 - sha256 = "1yz4cx02377ijlf8mnn84j1dcmlwh8ncx7y3kw1zg2qw0z4x119c"; 19 - }; 20 - } 21 - { 22 - goPackagePath = "github.com/urfave/cli"; 23 - fetch = { 24 - type = "git"; 25 - url = "https://github.com/urfave/cli"; 26 - rev = "b67dcf995b6a7b7f14fad5fcb7cc5441b05e814b"; 27 - sha256 = "0n5vq4nydlhb7w12jiwphvxqdy4jwpxc3zwlxyhf05lq1nxfb56h"; 28 - }; 29 - } 30 - { 31 - goPackagePath = "golang.org/x/net"; 32 - fetch = { 33 - type = "git"; 34 - url = "https://go.googlesource.com/net"; 35 - rev = "927f97764cc334a6575f4b7a1584a147864d5723"; 36 - sha256 = "0np7b766gb92vbm514yhdl7cjmqvn0dxdxskd84aas2ri1fkpgw5"; 37 - }; 38 - } 39 - { 40 - goPackagePath = "golang.org/x/oauth2"; 41 - fetch = { 42 - type = "git"; 43 - url = "https://go.googlesource.com/oauth2"; 44 - rev = "d668ce993890a79bda886613ee587a69dd5da7a6"; 45 - sha256 = "17m8d02fazil0dwvk33vpwvsb91asgbmmpqy05751csrfqhhdqna"; 46 - }; 47 - } 48 - # manually mirrored from launchpad because cloning failed due insecure http protocol 49 - { 50 - goPackagePath = "launchpad.net/go-xdg/v0"; 51 - fetch = { 52 - type = "git"; 53 - url = "https://github.com/Mic92/go-xdg"; 54 - rev = "b3fc6b3106d78701853b0caf62ebedae42769af2"; 55 - sha256 = "0fd68kkxzxjanpgannpys962bxzqdf8c1qvzk687hv504a3dp76f"; 56 - }; 57 - } 58 - ]
+1
pkgs/top-level/aliases.nix
··· 164 164 cupsBjnp = cups-bjnp; # added 2016-01-02 165 165 cups_filters = cups-filters; # added 2016-08 166 166 cups-googlecloudprint = throw "Google Cloudprint is officially discontinued since Jan 2021, more info https://support.google.com/chrome/a/answer/9633006"; 167 + cloud-print-connector = throw "Google Cloudprint is officially discontinued since Jan 2021, more info https://support.google.com/chrome/a/answer/9633006"; 167 168 curaLulzbot = throw "curaLulzbot has been removed due to insufficient upstream support for a modern dependency chain"; # added 2021-10-23 168 169 cquery = throw "cquery has been removed because it is abandoned by upstream. Consider switching to clangd or ccls instead."; # added 2020-06-15 169 170 cv = progress; # added 2015-09-06
-2
pkgs/top-level/all-packages.nix
··· 24163 24163 24164 24164 clipit = callPackage ../applications/misc/clipit { }; 24165 24165 24166 - cloud-print-connector = callPackage ../servers/cloud-print-connector { }; 24167 - 24168 24166 cloud-hypervisor = callPackage ../applications/virtualization/cloud-hypervisor { }; 24169 24167 24170 24168 clp = callPackage ../applications/science/math/clp { };