diff options
author | artuuge <artuuge@gmail.com> | 2016-02-08 14:21:39 +0100 |
---|---|---|
committer | artuuge <artuuge@gmail.com> | 2016-02-08 14:21:39 +0100 |
commit | f7d88238cd4f471f7798782d133d008e4a236843 (patch) | |
tree | 7b77fdeaa7288d7c84ddfe425d708f00a85f0740 /pkgs/misc/drivers/epson-escpr | |
parent | 4b183538fed818429b6ccd993b1feb5db9d615c1 (diff) |
epson-escpr: init at version 1.6.3
Diffstat (limited to 'pkgs/misc/drivers/epson-escpr')
-rw-r--r-- | pkgs/misc/drivers/epson-escpr/cups-filter-ppd-dirs.patch | 62 | ||||
-rw-r--r-- | pkgs/misc/drivers/epson-escpr/default.nix | 36 |
2 files changed, 98 insertions, 0 deletions
diff --git a/pkgs/misc/drivers/epson-escpr/cups-filter-ppd-dirs.patch b/pkgs/misc/drivers/epson-escpr/cups-filter-ppd-dirs.patch new file mode 100644 index 000000000000..3065ed1a10f5 --- /dev/null +++ b/pkgs/misc/drivers/epson-escpr/cups-filter-ppd-dirs.patch @@ -0,0 +1,62 @@ +diff --git a/configure b/configure_new +index c3e7199..ccbf290 100755 +--- a/configure ++++ b/configure_new +@@ -11585,55 +11585,8 @@ else + $as_echo "no" >&6; } + fi + +- +- +-if test "xNONE" != "x${prefix}" ; then +- cups_default_prefix="${prefix}" +-else +- cups_default_prefix="${ac_default_prefix}" +-fi +- +- +-# 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" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 + $as_echo_n "checking for ANSI C header files... " >&6; } diff --git a/pkgs/misc/drivers/epson-escpr/default.nix b/pkgs/misc/drivers/epson-escpr/default.nix new file mode 100644 index 000000000000..1f403947acb5 --- /dev/null +++ b/pkgs/misc/drivers/epson-escpr/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchurl, cups }: + +let + version = "1.6.3"; +in + stdenv.mkDerivation { + + name = "epson-escpr-${version}"; + + src = fetchurl { + 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"; + sha256 = "4988479ce7dd5513bfa1cce4a83f82348572d8d69d6aa3b2c6e154a58a04ad86"; + }; + + patches = [ ./cups-filter-ppd-dirs.patch ]; + + buildInputs = [ cups ]; + + meta = { + homepage = https://github.com/artuuge/NixOS-files/; + description = "ESC/P-R Driver (generic driver)"; + longDescription = '' + Epson Inkjet Printer Driver (ESC/P-R) for Linux and the + corresponding PPD files. The list of supported printers + can be found at http://www.openprinting.org/driver/epson-escpr/ . + + To use the driver adjust your configuration.nix file: + services.printing = { + enable = true; + drivers = [ pkgs.epson-escpr ]; + }; + ''; + license = stdenv.lib.licenses.gpl3Plus; + }; + + } |