Merge pull request #12875 from artuuge/epson-escpr

epson-escpr: init at version 1.6.3

+100
+62
pkgs/misc/drivers/epson-escpr/cups-filter-ppd-dirs.patch
···
··· 1 + diff --git a/configure b/configure_new 2 + index c3e7199..ccbf290 100755 3 + --- a/configure 4 + +++ b/configure_new 5 + @@ -11585,55 +11585,8 @@ else 6 + $as_echo "no" >&6; } 7 + fi 8 + 9 + - 10 + - 11 + -if test "xNONE" != "x${prefix}" ; then 12 + - cups_default_prefix="${prefix}" 13 + -else 14 + - cups_default_prefix="${ac_default_prefix}" 15 + -fi 16 + - 17 + - 18 + -# Check whether --with-cupsfilterdir was given. 19 + -if test "${with_cupsfilterdir+set}" = set; then : 20 + - withval=$with_cupsfilterdir; 21 + -else 22 + - with_cupsfilterdir=no 23 + -fi 24 + - 25 + -if test "xno" = "x${with_cupsfilterdir}"; then 26 + - if test "xyes" = "x$have_cups_config" ; then 27 + - CUPS_FILTER_DIR="${cups_default_prefix}`cups-config --serverbin | sed -e 's,^/[^/][^/]*,,'`/filter" 28 + - else 29 + - CUPS_FILTER_DIR="${cups_default_prefix}/lib/cups/filter" 30 + - fi 31 + -else 32 + - CUPS_FILTER_DIR="${with_cupsfilterdir}" 33 + -fi 34 + - 35 + - 36 + -# Check whether --with-cupsppddir was given. 37 + -if test "${with_cupsppddir+set}" = set; then : 38 + - withval=$with_cupsppddir; 39 + -else 40 + - with_cupsppddir=no 41 + -fi 42 + - 43 + -if test "xno" = "x${with_cupsppddir}"; then 44 + - if test -d "${cups_default_prefix}/share/ppd" ; then 45 + - CUPS_PPD_DIR="${cups_default_prefix}/share/ppd" 46 + - elif test "xyes" = "x$have_cups_config" ; then 47 + - CUPS_PPD_DIR="${cups_default_prefix}/`cups-config --datadir | sed -e 's,^/[^/][^/]*,,'`/model" 48 + - else 49 + - CUPS_PPD_DIR="${cups_default_prefix}/share/cups/model" 50 + - fi 51 + -else 52 + - CUPS_PPD_DIR="${with_cupsppddir}" 53 + -fi 54 + - 55 + - 56 + - 57 + - 58 + +CUPS_FILTER_DIR="${prefix}/lib/cups/filter" 59 + +CUPS_PPD_DIR="${prefix}/share/cups/model" 60 + 61 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 62 + $as_echo_n "checking for ANSI C header files... " >&6; }
+36
pkgs/misc/drivers/epson-escpr/default.nix
···
··· 1 + { stdenv, fetchurl, cups }: 2 + 3 + let 4 + version = "1.6.3"; 5 + in 6 + stdenv.mkDerivation { 7 + 8 + name = "epson-escpr-${version}"; 9 + 10 + src = fetchurl { 11 + url = "https://download3.ebz.epson.net/dsc/f/03/00/04/33/53/0177a44361d3dfeacf7f15ff4a347cef373688da/epson-inkjet-printer-escpr-1.6.3-1lsb3.2.tar.gz"; 12 + sha256 = "4988479ce7dd5513bfa1cce4a83f82348572d8d69d6aa3b2c6e154a58a04ad86"; 13 + }; 14 + 15 + patches = [ ./cups-filter-ppd-dirs.patch ]; 16 + 17 + buildInputs = [ cups ]; 18 + 19 + meta = { 20 + homepage = https://github.com/artuuge/NixOS-files/; 21 + description = "ESC/P-R Driver (generic driver)"; 22 + longDescription = '' 23 + Epson Inkjet Printer Driver (ESC/P-R) for Linux and the 24 + corresponding PPD files. The list of supported printers 25 + can be found at http://www.openprinting.org/driver/epson-escpr/ . 26 + 27 + To use the driver adjust your configuration.nix file: 28 + services.printing = { 29 + enable = true; 30 + drivers = [ pkgs.epson-escpr ]; 31 + }; 32 + ''; 33 + license = stdenv.lib.licenses.gpl3Plus; 34 + }; 35 + 36 + }
+2
pkgs/top-level/all-packages.nix
··· 15638 15639 crashplan = callPackage ../applications/backup/crashplan { }; 15640 15641 gutenprint = callPackage ../misc/drivers/gutenprint { }; 15642 15643 gutenprintBin = callPackage ../misc/drivers/gutenprint/bin.nix { };
··· 15638 15639 crashplan = callPackage ../applications/backup/crashplan { }; 15640 15641 + epson-escpr = callPackage ../misc/drivers/epson-escpr { }; 15642 + 15643 gutenprint = callPackage ../misc/drivers/gutenprint { }; 15644 15645 gutenprintBin = callPackage ../misc/drivers/gutenprint/bin.nix { };