44 fetchurl ,
55 autoreconfHook ,
66 cups ,
7- rpm ,
8- cpio ,
97} :
108
11- stdenv . mkDerivation rec {
9+ stdenv . mkDerivation {
1210 pname = "epson-inkjet-printer-escpr2" ;
13- version = "1.2.26 " ;
11+ version = "1.2.27 " ;
1412
1513 src = fetchurl {
1614 # To find the most recent version go to
1715 # https://support.epson.net/linux/Printer/LSB_distribution_pages/en/escpr2.php
18- # and retrieve the download link for source package for x86 CPU
19- url = "https://download3.ebz.epson.net/dsc/f/03/00/16/65/06/8fdecc271f6473178d08ffd6b6f6ca2abc92e32f /epson-inkjet-printer-escpr2-1.2.26 -1.src.rpm " ;
20- sha256 = "sha256-Js2iZCS9ZzJVRF8PbDA/U1muOne+upq4sA0u+NVIk/0 =" ;
16+ # and retrieve the download link for source package for arm CPU for the tar.gz (the x86 link targets to rpm source files)
17+ url = "https://download3.ebz.epson.net/dsc/f/03/00/16/77/53/1540531c6f47c62d3846d9a8943b1ecec7f825a1 /epson-inkjet-printer-escpr2-1.2.27 -1.tar.gz " ;
18+ hash = "sha256-h1RaqkN+hdVGVy0ancqfYoeNp/TTfJYy5oRxhPizO2Q =" ;
2119 } ;
2220
23- unpackPhase = ''
24- runHook preUnpack
25-
26- rpm2cpio $src | cpio -idmv
27- tar xvf ${ pname } -${ version } -1.tar.gz
28- cd ${ pname } -${ version }
29-
30- runHook postUnpack
31- '' ;
32-
3321 buildInputs = [ cups ] ;
3422 nativeBuildInputs = [
3523 autoreconfHook
36- rpm
37- cpio
3824 ] ;
3925
4026 patches = [
@@ -51,7 +37,7 @@ stdenv.mkDerivation rec {
5137 "--with-cupsppddir=${ builtins . placeholder "out" } /share/cups/model"
5238 ] ;
5339
54- meta = with lib ; {
40+ meta = {
5541 homepage = "http://download.ebz.epson.net/dsc/search/01/search/" ;
5642 description = "ESC/P-R 2 Driver (generic driver)" ;
5743 longDescription = ''
@@ -60,12 +46,12 @@ stdenv.mkDerivation rec {
6046
6147 Refer to the description of epson-escpr for usage.
6248 '' ;
63- license = licenses . gpl2Plus ;
64- maintainers = with maintainers ; [
49+ license = lib . licenses . gpl2Plus ;
50+ maintainers = with lib . maintainers ; [
6551 ma9e
6652 ma27
6753 shawn8901
6854 ] ;
69- platforms = platforms . linux ;
55+ platforms = lib . platforms . linux ;
7056 } ;
7157}
0 commit comments