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.

rafaelrc7 09b2a1dc 29c58cf7

+8 -7
+8 -7
pkgs/by-name/ep/epson_201207w/package.nix
··· 10 10 }: 11 11 12 12 let 13 - version = "1.0.0"; 13 + version = "1.0.1"; 14 + filterVersion = "1.0.2"; 14 15 in 15 16 stdenv.mkDerivation { 16 17 ··· 20 21 src = fetchurl { 21 22 # NOTE: Don't forget to update the webarchive link too! 22 23 urls = [ 23 - "https://download.ebz.epson.net/dsc/op/stable/SRPMS/epson-inkjet-printer-201207w-${version}-1lsb3.2.src.rpm" 24 - "https://web.archive.org/web/https://download.ebz.epson.net/dsc/op/stable/SRPMS/epson-inkjet-printer-201207w-${version}-1lsb3.2.src.rpm" 24 + "https://download3.ebz.epson.net/dsc/f/03/00/15/64/87/25d34a13841e5e95d80266e6fd8dfcdf67c95634/epson-inkjet-printer-201207w-1.0.1-1.src.rpm" 25 + "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" 25 26 ]; 26 - sha256 = "1ixnhn2dk83nh9v8sdivzgc2bm9z2phvsbx8bc6ainbjq6vn7lns"; 27 + sha256 = "0icbsd3m8ij1zm55q8vms81dxd79nf5m33i2g4knddljsfv7nxdc"; 27 28 }; 28 29 29 30 nativeBuildInputs = [ ··· 40 41 unpackPhase = '' 41 42 rpmextract $src 42 43 tar -zxf epson-inkjet-printer-201207w-${version}.tar.gz 43 - tar -zxf epson-inkjet-printer-filter-${version}.tar.gz 44 + tar -zxf epson-inkjet-printer-filter-${filterVersion}.tar.gz 44 45 for ppd in epson-inkjet-printer-201207w-${version}/ppds/*; do 45 46 substituteInPlace $ppd --replace "/opt/epson-inkjet-printer-201207w" "$out" 46 47 substituteInPlace $ppd --replace "/cups/lib" "/lib/cups" 47 48 done 48 - cd epson-inkjet-printer-filter-${version} 49 + cd epson-inkjet-printer-filter-${filterVersion} 49 50 ''; 50 51 51 52 preConfigure = '' ··· 86 87 }; 87 88 ''; 88 89 license = with licenses; [ 89 - lgpl21 90 + lgpl21Plus 90 91 epson 91 92 ]; 92 93 maintainers = [ maintainers.romildo ];