git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #54906 from furrycatherder/epson-escpr2

epson-escpr2: init at 1.0.29

commit3ceb958cef2ef25f478ce2ad924d14327452f7fb authorJoachim F <joachifm@users.noreply.github.com> dateFri 12 Apr 2019, 15:36 (8 years ago) parent3277aedd258dce
3 files changed+92
pkgs/misc/drivers/epson-escpr2/cups-filter-ppd-dirs.patch+55 pkgs/misc/drivers/epson-escpr2/default.nix+36 pkgs/top-level/all-packages.nix+1
pkgs/misc/drivers/epson-escpr2/cups-filter-ppd-dirs.patchnew file+55
@@ -0,0 +1,55 @@
1+diff --git a/configure.orig b/configure
2+index e9d400f..dac1943 100755
3+--- a/configure.orig
4++++ b/configure
5+@@ -12184,48 +12184,8 @@ esac
6+ # *) ESCPR_LIB_NAME="escpr2_32" ;;
7+ #esac
8+
9+-
10+-
11+-# Check whether --with-cupsfilterdir was given.
12+-if test "${with_cupsfilterdir+set}" = set; then :
13+- withval=$with_cupsfilterdir;
14+-else
15+- with_cupsfilterdir=no
16+-fi
17+-
18+-if test "xno" = "x${with_cupsfilterdir}"; then
19+- if test "xyes" = "x$have_cups_config" ; then
20+- CUPS_FILTER_DIR="${cups_default_prefix}`cups-config --serverbin | sed -e 's,^/[^/][^/]*,,'`/filter"
21+- else
22+- CUPS_FILTER_DIR="${cups_default_prefix}/lib/cups/filter"
23+- fi
24+-else
25+- CUPS_FILTER_DIR="${with_cupsfilterdir}"
26+-fi
27+-
28+-
29+-# Check whether --with-cupsppddir was given.
30+-if test "${with_cupsppddir+set}" = set; then :
31+- withval=$with_cupsppddir;
32+-else
33+- with_cupsppddir=no
34+-fi
35+-
36+-if test "xno" = "x${with_cupsppddir}"; then
37+- if test -d "${cups_default_prefix}/share/ppd" ; then
38+- CUPS_PPD_DIR="${cups_default_prefix}/share/ppd"
39+- elif test "xyes" = "x$have_cups_config" ; then
40+- CUPS_PPD_DIR="${cups_default_prefix}`cups-config --datadir | sed -e 's,^/[^/][^/]*,,'`/model"
41+- else
42+- CUPS_PPD_DIR="${cups_default_prefix}/share/cups/model"
43+- fi
44+-else
45+- CUPS_PPD_DIR="${with_cupsppddir}"
46+-fi
47+-
48+-
49+-
50+-
51++CUPS_FILTER_DIR="${prefix}/lib/cups/filter"
52++CUPS_PPD_DIR="${prefix}/share/cups/model"
53+
54+ # Check whether --enable-lsb was given.
55+ if test "${enable_lsb+set}" = set; then :
pkgs/misc/drivers/epson-escpr2/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ stdenv, fetchurl, cups, busybox }:
2+
3+stdenv.mkDerivation rec {
4+ name = "epson-inkjet-printer-escpr2-${version}";
5+ version = "1.0.29";
6+
7+ src = fetchurl {
8+ url = "https://download3.ebz.epson.net/dsc/f/03/00/09/02/31/a332507b6398c6e2e007c05477dd6c3d5a8e50eb/${name}-1lsb3.2.src.rpm";
9+ sha256 = "064br52akpw5yrxb2wqw2klv4jrvyipa7w0rjj974xgyi781lqs5";
10+ };
11+
12+ patches = [ ./cups-filter-ppd-dirs.patch ];
13+
14+ buildInputs = [ cups busybox ];
15+
16+ unpackPhase = ''
17+ rpm2cpio $src | cpio -idmv
18+
19+ tar xvf ${name}-1lsb3.2.tar.gz
20+ cd ${name}
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ homepage = "http://download.ebz.epson.net/dsc/search/01/search/";
25+ description = "ESC/P-R 2 Driver (generic driver)";
26+ longDescription = ''
27+ Epson Inkjet Printer Driver 2 (ESC/P-R 2) for Linux and the
28+ corresponding PPD files.
29+
30+ Refer to the description of epson-escpr for usage.
31+ '';
32+ license = licenses.gpl2;
33+ maintainers = with maintainers; [ ma9e ];
34+ platforms = platforms.linux;
35+ };
36+}
pkgs/top-level/all-packages.nix+1
@@ -22617,6 +22617,7 @@ in
2261722617 epson-alc1100 = callPackage ../misc/drivers/epson-alc1100 { };
2261822618
2261922619 epson-escpr = callPackage ../misc/drivers/epson-escpr { };
22620+ epson-escpr2 = callPackage ../misc/drivers/epson-escpr2 { };
2262022621
2262122622 epson_201207w = callPackage ../misc/drivers/epson_201207w { };
2262222623