cups-googlecloudprint: remove, service discontinued (#112912)
parent
f95d52da2b
commit
ddf013dbfb
|
@ -1,64 +0,0 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, python2, python2Packages, file, makeWrapper, cups }:
|
|
||||||
|
|
||||||
# Setup instructions can be found at https://github.com/simoncadman/CUPS-Cloud-Print#configuration
|
|
||||||
# So the nix version is something like:
|
|
||||||
# nix run nixpkgs.cups-googlecloudprint -c sudo setupcloudprint
|
|
||||||
# nix run nixpkgs.cups-googlecloudprint -c sudo listcloudprinters
|
|
||||||
|
|
||||||
let pythonEnv = python2.buildEnv.override {
|
|
||||||
extraLibs = with python2Packages; [
|
|
||||||
six
|
|
||||||
httplib2
|
|
||||||
pycups
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
pname = "cups-googlecloudprint";
|
|
||||||
version = "20160502";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "simoncadman";
|
|
||||||
repo = "CUPS-Cloud-Print";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "0760i12w7jrhq7fsgyz3yqla5cvpjb45n6m2jz96wsy3p3xf6dzz";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ cups makeWrapper ];
|
|
||||||
|
|
||||||
cupsgroup = "nonexistantgroup";
|
|
||||||
NOPERMS = 1;
|
|
||||||
|
|
||||||
postConfigure = ''
|
|
||||||
substituteInPlace Makefile --replace "${cups}" "$out"
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
pushd "$out"
|
|
||||||
for s in lib/cups/backend/gcp lib/cups/driver/cupscloudprint
|
|
||||||
do
|
|
||||||
echo "Wrapping $s..."
|
|
||||||
wrapProgram "$out/$s" --set PATH "${lib.makeBinPath [pythonEnv file]}" --prefix PYTHONPATH : "$out/share/cloudprint-cups"
|
|
||||||
done
|
|
||||||
|
|
||||||
mkdir bin
|
|
||||||
|
|
||||||
for s in share/cloudprint-cups/*.py
|
|
||||||
do
|
|
||||||
if [ -x "$s" ] # Only wrapping those Python scripts marked as executable
|
|
||||||
then
|
|
||||||
o="bin/$(echo $s | sed 's,share/cloudprint-cups/\(.*\).py,\1,')"
|
|
||||||
echo "Wrapping $o -> $s..."
|
|
||||||
makeWrapper "$out/$s" "$o" --set PATH "${lib.makeBinPath [pythonEnv file]}" --prefix PYTHONPATH : "$out/share/cloudprint-cups"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Google Cloud Print driver for CUPS, allows printing to printers hosted on Google Cloud Print";
|
|
||||||
homepage = "http://ccp.niftiestsoftware.com";
|
|
||||||
platforms = platforms.linux;
|
|
||||||
license = licenses.gpl3;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -115,6 +115,7 @@ mapAliases ({
|
||||||
cpp-gsl = microsoft_gsl; # added 2019-05-24
|
cpp-gsl = microsoft_gsl; # added 2019-05-24
|
||||||
cupsBjnp = cups-bjnp; # added 2016-01-02
|
cupsBjnp = cups-bjnp; # added 2016-01-02
|
||||||
cups_filters = cups-filters; # added 2016-08
|
cups_filters = cups-filters; # added 2016-08
|
||||||
|
cups-googlecloudprint = throw "Google Cloudprint is officially discontinued since Jan 2021, more info https://support.google.com/chrome/a/answer/9633006";
|
||||||
cquery = throw "cquery has been removed because it is abandoned by upstream. Consider switching to clangd or ccls instead."; # added 2020-06-15
|
cquery = throw "cquery has been removed because it is abandoned by upstream. Consider switching to clangd or ccls instead."; # added 2020-06-15
|
||||||
cv = progress; # added 2015-09-06
|
cv = progress; # added 2015-09-06
|
||||||
d1x_rebirth = dxx-rebirth; # added 2018-04-25
|
d1x_rebirth = dxx-rebirth; # added 2018-04-25
|
||||||
|
|
|
@ -28584,8 +28584,6 @@ in
|
||||||
|
|
||||||
cups-brother-hll2340dw = pkgsi686Linux.callPackage ../misc/cups/drivers/hll2340dw { };
|
cups-brother-hll2340dw = pkgsi686Linux.callPackage ../misc/cups/drivers/hll2340dw { };
|
||||||
|
|
||||||
cups-googlecloudprint = callPackage ../misc/cups/drivers/googlecloudprint { };
|
|
||||||
|
|
||||||
# this driver ships with pre-compiled 32-bit binary libraries
|
# this driver ships with pre-compiled 32-bit binary libraries
|
||||||
cnijfilter_2_80 = pkgsi686Linux.callPackage ../misc/cups/drivers/cnijfilter_2_80 { };
|
cnijfilter_2_80 = pkgsi686Linux.callPackage ../misc/cups/drivers/cnijfilter_2_80 { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue