git.iko.soy/typeable/nixpkgs
on master help sign in
epson-alc1100: init at version 1.2-0

Driver for printer Epson AcuLaser C1100

commit03187c3e15633806883555810bb69b94ac93cf91 authorEmanuele Peruffo <info@emanueleperuffo.com> dateThu 4 May 2017, 00:22 (10 years ago) parent2aae62f
5 files changed+104
lib/licenses.nix+6 pkgs/misc/drivers/epson-alc1100/cups-data-dir.patch+13 pkgs/misc/drivers/epson-alc1100/default.nix+70 pkgs/misc/drivers/epson-alc1100/ppd.patch+13 pkgs/top-level/all-packages.nix+2
lib/licenses.nix+6
@@ -170,6 +170,12 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
170170 fullName = "DOC License";
171171 };
172172
173+ eapl = {
174+ fullName = "EPSON AVASYS PUBLIC LICENSE";
175+ url = http://avasys.jp/hp/menu000000700/hpg000000603.htm;
176+ free = false;
177+ };
178+
173179 efl10 = spdx {
174180 spdxId = "EFL-1.0";
175181 fullName = "Eiffel Forum License v1.0";
pkgs/misc/drivers/epson-alc1100/cups-data-dir.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/configure b/configure
2+index 0053441..9a6b855 100755
3+--- a/configure
4++++ b/configure
5+@@ -2833,7 +2833,7 @@ if test $have_cups_config = yes; then
6+ CUPS_LIBS=`cups-config --libs`
7+ CUPS_IMAGE_LIBS=`cups-config --image --libs`
8+ CUPS_SERVER_DIR=`cups-config --serverbin`
9+- CUPS_DATA_DIR=`cups-config --datadir`
10++ CUPS_DATA_DIR="${prefix}/share/cups"
11+ else
12+ { { echo "$as_me:$LINENO: error: *** 'cups-config' missing, please install CUPS or fix your \$PATH ***" >&5
13+ echo "$as_me: error: *** 'cups-config' missing, please install CUPS or fix your \$PATH ***" >&2;}
pkgs/misc/drivers/epson-alc1100/default.nixnew file+70
@@ -0,0 +1,70 @@
1+{ stdenv, stdenv_32bit, fetchurl, cups, pkgsi686Linux, dpkg, psutils, makeWrapper, ghostscript, bash }:
2+
3+let
4+ version = "1.2-0";
5+
6+ libstdcpp5 = fetchurl {
7+ url = "http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb";
8+ sha256 = "10f8zcmqaa7skvg2bz94mnlgqpan4iscvi8913r6iawjh7hiisjy";
9+ };
10+in
11+ stdenv.mkDerivation {
12+ name = "epson-alc1100-${version}";
13+
14+ src = fetchurl {
15+ url = "http://a1227.g.akamai.net/f/1227/40484/7d/download.ebz.epson.net/dsc/f/01/00/01/58/65/cd71929d2bf41ebf7e96f68fa9f1279556545ef1/Epson-ALC1100-filter-1.2.tar.gz";
16+ sha256 = "0q0bf4dfm4v69l7xg6sgkh7rwb0h77i8j9kplq1dfkd208g7y81p";
17+ };
18+
19+ patches = [ ./cups-data-dir.patch ./ppd.patch ];
20+
21+ nativeBuildInputs = [ dpkg makeWrapper ];
22+
23+ buildInputs = [ cups pkgsi686Linux.glibc psutils ghostscript bash ];
24+
25+ postUnpack = ''
26+ dpkg -x ${libstdcpp5} libstdcpp5_i386;
27+
28+ mkdir -p $out/lib;
29+
30+ mv libstdcpp5_i386/usr/lib/* $out/lib;
31+ '';
32+
33+ postFixup = ''
34+ patchelf --set-interpreter ${pkgsi686Linux.glibc}/lib/ld-linux.so.2 \
35+ --set-rpath "${stdenv.lib.makeLibraryPath [
36+ pkgsi686Linux.glibc
37+ "$out"
38+ ]}" $out/bin/alc1100
39+
40+ patchelf --set-rpath "${stdenv.lib.makeLibraryPath [
41+ pkgsi686Linux.glibc
42+ ]}" $out/lib/libstdc++.so.5.0.7
43+
44+ wrapProgram $out/bin/alc1100_lprwrapper.sh \
45+ --suffix PATH : "\$PATH:${psutils}/bin:/var/lib/cups/path/bin"
46+
47+ wrapProgram $out/bin/pstoalc1100.sh \
48+ --suffix PATH : "\$PATH:${psutils}/bin:${ghostscript}/bin:${bash}/bin:/var/lib/cups/path/bin"
49+ '';
50+
51+ meta = with stdenv.lib; {
52+ homepage = "http://download.ebz.epson.net/dsc/search/01/search/";
53+ description = "Epson AcuLaser C1100 Driver";
54+ longDescription = ''
55+ This package provides a print filter for printing to EPSON AL-C1100
56+ printers on Linux systems.
57+
58+ To use the driver adjust your configuration.nix file:
59+ services.printing = {
60+ enable = true;
61+ drivers = [ pkgs.epson-alc1100 ];
62+ };
63+ '';
64+
65+ license = with licenses; [ mit eapl ];
66+ maintainers = [ maintainers.eperuffo ];
67+ platforms = platforms.linux;
68+ };
69+
70+ }
pkgs/misc/drivers/epson-alc1100/ppd.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/ppd/Epson-AL-C1100-fm3.ppd b/ppd/Epson-AL-C1100-fm3.ppd
2+index 75c7fff..ecd04c8 100644
3+--- a/ppd/Epson-AL-C1100-fm3.ppd
4++++ b/ppd/Epson-AL-C1100-fm3.ppd
5+@@ -68,7 +68,7 @@
6+ *%*********** Foomatic Configulations ************
7+ *%pprRIP: foomatic-rip other
8+ *FoomaticIDs: Epson-AL-C1100 alc1100
9+-*FoomaticRIPCommandLine: "pstoalc1100.sh %C"
10++*FoomaticRIPCommandLine: "/var/lib/cups/path/bin/pstoalc1100.sh %C"
11+
12+ *%**************** Paper Handling ******************
13+
pkgs/top-level/all-packages.nix+2
@@ -18009,6 +18009,8 @@ with pkgs;
1800918009
1801018010 e17gtk = callPackage ../misc/themes/e17gtk { };
1801118011
18012+ epson-alc1100 = callPackage ../misc/drivers/epson-alc1100 { };
18013+
1801218014 epson-escpr = callPackage ../misc/drivers/epson-escpr { };
1801318015
1801418016 epson_201207w = callPackage ../misc/drivers/epson_201207w { };