git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #13781 from romildo/new.epson_201207w

epson_201207w: init at 1.0.0

commitd30b6f6a7b9df6fe4a64841248a6fd287472cb33 authorjoachifm <joachifm@users.noreply.github.com> dateThu 10 Mar 2016, 11:29 (11 years ago) parentf412fb1e57f1eb
3 files changed+80
lib/licenses.nix+6 pkgs/misc/drivers/epson_201207w/default.nix+72 pkgs/top-level/all-packages.nix+2
lib/licenses.nix+6
@@ -175,6 +175,12 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
175175 fullName = "Eclipse Public License 1.0";
176176 };
177177
178+ epson = {
179+ fullName = "Seiko Epson Corporation Software License Agreement for Linux";
180+ url = https://download.ebz.epson.net/dsc/du/02/eula/global/LINUX_EN.html;
181+ free = false;
182+ };
183+
178184 fdl12 = spdx {
179185 spdxId = "GFDL-1.2";
180186 fullName = "GNU Free Documentation License v1.2";
pkgs/misc/drivers/epson_201207w/default.nixnew file+72
@@ -0,0 +1,72 @@
1+{ stdenv, fetchurl, rpmextract, autoreconfHook, file, libjpeg, cups }:
2+
3+let
4+ version = "1.0.0";
5+in
6+ stdenv.mkDerivation {
7+
8+ name = "epson_201207w-${version}";
9+
10+ src = fetchurl {
11+ url = "https://download.ebz.epson.net/dsc/op/stable/SRPMS/epson-inkjet-printer-201207w-${version}-1lsb3.2.src.rpm";
12+ sha256 = "1ixnhn2dk83nh9v8sdivzgc2bm9z2phvsbx8bc6ainbjq6vn7lns";
13+ };
14+
15+ nativeBuildInputs = [ rpmextract autoreconfHook file ];
16+
17+ buildInputs = [ libjpeg cups ];
18+
19+ unpackPhase = ''
20+ rpmextract $src
21+ tar -zxf epson-inkjet-printer-201207w-${version}.tar.gz
22+ tar -zxf epson-inkjet-printer-filter-${version}.tar.gz
23+ for ppd in epson-inkjet-printer-201207w-${version}/ppds/*; do
24+ substituteInPlace $ppd --replace "/opt/epson-inkjet-printer-201207w" "$out"
25+ substituteInPlace $ppd --replace "/cups/lib" "/lib/cups"
26+ done
27+ cd epson-inkjet-printer-filter-${version}
28+ '';
29+
30+ preConfigure = ''
31+ chmod +x configure
32+ export LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
33+ '';
34+
35+ postInstall = ''
36+ cd ../epson-inkjet-printer-201207w-${version}
37+ cp -a lib64 resource watermark $out
38+ mkdir -p $out/share/cups/model/epson-inkjet-printer-201207w
39+ cp -a ppds $out/share/cups/model/epson-inkjet-printer-201207w/
40+ cp -a Manual.txt $out/doc/
41+ cp -a README $out/doc/README.driver
42+ '';
43+
44+ meta = with stdenv.lib; {
45+ homepage = https://www.openprinting.org/driver/epson-201207w;
46+ description = "Epson printer driver (L110, L210, L300, L350, L355, L550, L555)";
47+ longDescription = ''
48+ This software is a filter program used with the Common UNIX Printing
49+ System (CUPS) under Linux. It supplies high quality printing with
50+ Seiko Epson Color Ink Jet Printers.
51+
52+ List of printers supported by this package:
53+ Epson L110 Series
54+ Epson L210 Series
55+ Epson L300 Series
56+ Epson L350 Series
57+ Epson L355 Series
58+ Epson L550 Series
59+ Epson L555 Series
60+
61+ To use the driver adjust your configuration.nix file:
62+ services.printing = {
63+ enable = true;
64+ drivers = [ pkgs.epson_201207w ];
65+ };
66+ '';
67+ license = with licenses; [ lgpl21 epson ];
68+ maintainers = [ maintainers.romildo ];
69+ platforms = [ "x86_64-linux" ];
70+ };
71+
72+ }
pkgs/top-level/all-packages.nix+2
@@ -15853,6 +15853,8 @@ let
1585315853
1585415854 epson-escpr = callPackage ../misc/drivers/epson-escpr { };
1585515855
15856+ epson_201207w = callPackage ../misc/drivers/epson_201207w { };
15857+
1585615858 gutenprint = callPackage ../misc/drivers/gutenprint { };
1585715859
1585815860 gutenprintBin = callPackage ../misc/drivers/gutenprint/bin.nix { };