epson-escpr2: 1.2.26 -> 1.2.27
use tar.gz source instead of src.rpm
This commit is contained in:
@@ -4,37 +4,23 @@
|
||||
fetchurl,
|
||||
autoreconfHook,
|
||||
cups,
|
||||
rpm,
|
||||
cpio,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation {
|
||||
pname = "epson-inkjet-printer-escpr2";
|
||||
version = "1.2.26";
|
||||
version = "1.2.27";
|
||||
|
||||
src = fetchurl {
|
||||
# To find the most recent version go to
|
||||
# https://support.epson.net/linux/Printer/LSB_distribution_pages/en/escpr2.php
|
||||
# and retrieve the download link for source package for x86 CPU
|
||||
url = "https://download3.ebz.epson.net/dsc/f/03/00/16/65/06/8fdecc271f6473178d08ffd6b6f6ca2abc92e32f/epson-inkjet-printer-escpr2-1.2.26-1.src.rpm";
|
||||
sha256 = "sha256-Js2iZCS9ZzJVRF8PbDA/U1muOne+upq4sA0u+NVIk/0=";
|
||||
# and retrieve the download link for source package for arm CPU for the tar.gz (the x86 link targets to rpm source files)
|
||||
url = "https://download3.ebz.epson.net/dsc/f/03/00/16/77/53/1540531c6f47c62d3846d9a8943b1ecec7f825a1/epson-inkjet-printer-escpr2-1.2.27-1.tar.gz";
|
||||
hash = "sha256-h1RaqkN+hdVGVy0ancqfYoeNp/TTfJYy5oRxhPizO2Q=";
|
||||
};
|
||||
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
|
||||
rpm2cpio $src | cpio -idmv
|
||||
tar xvf ${pname}-${version}-1.tar.gz
|
||||
cd ${pname}-${version}
|
||||
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
buildInputs = [ cups ];
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
rpm
|
||||
cpio
|
||||
];
|
||||
|
||||
patches = [
|
||||
|
||||
Reference in New Issue
Block a user