git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #107313 from ewok/carps-cups

carps-cups: init at unstable-2018-03-05

commitd1bfbb992db2ca20e5fc804ecdc174a419baa590 authorSandro <sandro.jaeckel@gmail.com> dateTue 19 Jan 2021, 19:21 (6 years ago) parentf591395795ecae
2 files changed+46
pkgs/misc/cups/drivers/carps-cups/default.nix+44 pkgs/top-level/all-packages.nix+2
pkgs/misc/cups/drivers/carps-cups/default.nixnew file+44
@@ -0,0 +1,44 @@
1+{ stdenv
2+, lib
3+, fetchFromGitHub
4+, cups
5+}:
6+
7+stdenv.mkDerivation {
8+ pname = "carps-cups";
9+ version = "unstable-2018-03-05";
10+
11+ src = fetchFromGitHub {
12+ owner = "ondrej-zary";
13+ repo = "carps-cups";
14+ rev = "18d80d1d6f473dd9132e4b6d8b5c592c74982f17";
15+ sha256 = "0mjj9hs5lqxi0qamgb4sxfz4fvf7ggi66bxd37bkz3fl0g9xff70";
16+ };
17+
18+ preBuild = ''
19+ export CUPS_DATADIR="${cups}/share/cups"
20+ '';
21+
22+ installPhase = ''
23+ CUPSDIR="$out/lib/cups"
24+ CUPSDATADIR="$out/share/cups"
25+
26+ mkdir -p "$CUPSDIR/filter" "$CUPSDATADIR/drv" "$CUPSDATADIR/usb"
27+
28+ install -s rastertocarps $CUPSDIR/filter
29+ install -m 644 carps.drv $CUPSDATADIR/drv/
30+ install -m 644 carps.usb-quirks $CUPSDATADIR/usb/
31+ '';
32+
33+ buildInputs = [ cups ];
34+
35+ meta = with lib; {
36+ description = "CUPS Linux drivers for Canon printers";
37+ homepage = "https://www.canon.com/";
38+ license = licenses.gpl3Plus;
39+ maintainers = with maintainers; [
40+ ewok
41+ ];
42+ };
43+}
44+
pkgs/top-level/all-packages.nix+2
@@ -28270,6 +28270,8 @@ in
2827028270
2827128271 gutenprintBin = callPackage ../misc/drivers/gutenprint/bin.nix { };
2827228272
28273+ carps-cups = callPackage ../misc/cups/drivers/carps-cups { };
28274+
2827328275 cups-bjnp = callPackage ../misc/cups/drivers/cups-bjnp { };
2827428276
2827528277 cups-brother-hl1110 = pkgsi686Linux.callPackage ../misc/cups/drivers/hl1110 { };