Skip to content

Commit dde29da

Browse files
committed
epson-escpr2: 1.2.26 -> 1.2.27
use tar.gz source instead of src.rpm
1 parent 3df3edc commit dde29da

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

pkgs/by-name/ep/epson-escpr2/package.nix

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,23 @@
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 = [

0 commit comments

Comments
 (0)