epson-escpr2: init at 1.0.29
This commit is contained in:
parent
39104c2e67
commit
d258dce5ce
55
pkgs/misc/drivers/epson-escpr2/cups-filter-ppd-dirs.patch
Normal file
55
pkgs/misc/drivers/epson-escpr2/cups-filter-ppd-dirs.patch
Normal file
@ -0,0 +1,55 @@
|
||||
diff --git a/configure.orig b/configure
|
||||
index e9d400f..dac1943 100755
|
||||
--- a/configure.orig
|
||||
+++ b/configure
|
||||
@@ -12184,48 +12184,8 @@ esac
|
||||
# *) ESCPR_LIB_NAME="escpr2_32" ;;
|
||||
#esac
|
||||
|
||||
-
|
||||
-
|
||||
-# Check whether --with-cupsfilterdir was given.
|
||||
-if test "${with_cupsfilterdir+set}" = set; then :
|
||||
- withval=$with_cupsfilterdir;
|
||||
-else
|
||||
- with_cupsfilterdir=no
|
||||
-fi
|
||||
-
|
||||
-if test "xno" = "x${with_cupsfilterdir}"; then
|
||||
- if test "xyes" = "x$have_cups_config" ; then
|
||||
- CUPS_FILTER_DIR="${cups_default_prefix}`cups-config --serverbin | sed -e 's,^/[^/][^/]*,,'`/filter"
|
||||
- else
|
||||
- CUPS_FILTER_DIR="${cups_default_prefix}/lib/cups/filter"
|
||||
- fi
|
||||
-else
|
||||
- CUPS_FILTER_DIR="${with_cupsfilterdir}"
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-# Check whether --with-cupsppddir was given.
|
||||
-if test "${with_cupsppddir+set}" = set; then :
|
||||
- withval=$with_cupsppddir;
|
||||
-else
|
||||
- with_cupsppddir=no
|
||||
-fi
|
||||
-
|
||||
-if test "xno" = "x${with_cupsppddir}"; then
|
||||
- if test -d "${cups_default_prefix}/share/ppd" ; then
|
||||
- CUPS_PPD_DIR="${cups_default_prefix}/share/ppd"
|
||||
- elif test "xyes" = "x$have_cups_config" ; then
|
||||
- CUPS_PPD_DIR="${cups_default_prefix}`cups-config --datadir | sed -e 's,^/[^/][^/]*,,'`/model"
|
||||
- else
|
||||
- CUPS_PPD_DIR="${cups_default_prefix}/share/cups/model"
|
||||
- fi
|
||||
-else
|
||||
- CUPS_PPD_DIR="${with_cupsppddir}"
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-
|
||||
-
|
||||
+CUPS_FILTER_DIR="${prefix}/lib/cups/filter"
|
||||
+CUPS_PPD_DIR="${prefix}/share/cups/model"
|
||||
|
||||
# Check whether --enable-lsb was given.
|
||||
if test "${enable_lsb+set}" = set; then :
|
36
pkgs/misc/drivers/epson-escpr2/default.nix
Normal file
36
pkgs/misc/drivers/epson-escpr2/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ stdenv, fetchurl, cups, busybox }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "epson-inkjet-printer-escpr2-${version}";
|
||||
version = "1.0.29";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download3.ebz.epson.net/dsc/f/03/00/09/02/31/a332507b6398c6e2e007c05477dd6c3d5a8e50eb/${name}-1lsb3.2.src.rpm";
|
||||
sha256 = "064br52akpw5yrxb2wqw2klv4jrvyipa7w0rjj974xgyi781lqs5";
|
||||
};
|
||||
|
||||
patches = [ ./cups-filter-ppd-dirs.patch ];
|
||||
|
||||
buildInputs = [ cups busybox ];
|
||||
|
||||
unpackPhase = ''
|
||||
rpm2cpio $src | cpio -idmv
|
||||
|
||||
tar xvf ${name}-1lsb3.2.tar.gz
|
||||
cd ${name}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://download.ebz.epson.net/dsc/search/01/search/";
|
||||
description = "ESC/P-R 2 Driver (generic driver)";
|
||||
longDescription = ''
|
||||
Epson Inkjet Printer Driver 2 (ESC/P-R 2) for Linux and the
|
||||
corresponding PPD files.
|
||||
|
||||
Refer to the description of epson-escpr for usage.
|
||||
'';
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ ma9e ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -22206,6 +22206,7 @@ in
|
||||
epson-alc1100 = callPackage ../misc/drivers/epson-alc1100 { };
|
||||
|
||||
epson-escpr = callPackage ../misc/drivers/epson-escpr { };
|
||||
epson-escpr2 = callPackage ../misc/drivers/epson-escpr2 { };
|
||||
|
||||
epson_201207w = callPackage ../misc/drivers/epson_201207w { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user