epson_201207w: 1.0.0 -> 1.0.1

The download links have changed and seem to have random parts. Thus I
remove the version variable from it, since in future updates the link
will have to be fetched manually.

The filter version is also different from the package version, so a
separate variable was set to reference it.

The filter licence was also set to the more specific lgpl21Plus.
This commit is contained in:
rafaelrc7
2025-02-06 03:51:00 -03:00
parent 29c58cf78d
commit 09b2a1dccc
+8 -7
View File
@@ -10,7 +10,8 @@
}:
let
version = "1.0.0";
version = "1.0.1";
filterVersion = "1.0.2";
in
stdenv.mkDerivation {
@@ -20,10 +21,10 @@ stdenv.mkDerivation {
src = fetchurl {
# NOTE: Don't forget to update the webarchive link too!
urls = [
"https://download.ebz.epson.net/dsc/op/stable/SRPMS/epson-inkjet-printer-201207w-${version}-1lsb3.2.src.rpm"
"https://web.archive.org/web/https://download.ebz.epson.net/dsc/op/stable/SRPMS/epson-inkjet-printer-201207w-${version}-1lsb3.2.src.rpm"
"https://download3.ebz.epson.net/dsc/f/03/00/15/64/87/25d34a13841e5e95d80266e6fd8dfcdf67c95634/epson-inkjet-printer-201207w-1.0.1-1.src.rpm"
"https://web.archive.org/web/https://download3.ebz.epson.net/dsc/f/03/00/15/64/87/25d34a13841e5e95d80266e6fd8dfcdf67c95634/epson-inkjet-printer-201207w-1.0.1-1.src.rpm"
];
sha256 = "1ixnhn2dk83nh9v8sdivzgc2bm9z2phvsbx8bc6ainbjq6vn7lns";
sha256 = "0icbsd3m8ij1zm55q8vms81dxd79nf5m33i2g4knddljsfv7nxdc";
};
nativeBuildInputs = [
@@ -40,12 +41,12 @@ stdenv.mkDerivation {
unpackPhase = ''
rpmextract $src
tar -zxf epson-inkjet-printer-201207w-${version}.tar.gz
tar -zxf epson-inkjet-printer-filter-${version}.tar.gz
tar -zxf epson-inkjet-printer-filter-${filterVersion}.tar.gz
for ppd in epson-inkjet-printer-201207w-${version}/ppds/*; do
substituteInPlace $ppd --replace "/opt/epson-inkjet-printer-201207w" "$out"
substituteInPlace $ppd --replace "/cups/lib" "/lib/cups"
done
cd epson-inkjet-printer-filter-${version}
cd epson-inkjet-printer-filter-${filterVersion}
'';
preConfigure = ''
@@ -86,7 +87,7 @@ stdenv.mkDerivation {
};
'';
license = with licenses; [
lgpl21
lgpl21Plus
epson
];
maintainers = [ maintainers.romildo ];