···
url = "mirror://sourceforge/hplip/${pname}-${version}.tar.gz";
42
-
hash = "sha256-XXZDgxiTpeKt351C1YGl2/5arwI2Johrh2LFZF2g8fs=";
42
+
hash = "sha256-6HL/KOslF3Balfbhg576HlCnejOq6JBSeN8r2CCRllM=";
url = "https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/${pname}-${version}-plugin.run";
47
-
hash = "sha256-Hzxr3SVmGoouGBU2VdbwbwKMHZwwjWnI7P13Z6LQxao=";
47
+
hash = "sha256-miz41WYehGVI27tZUjGlRIpctjcpzJPfjR9lLf0WelQ=";
hplipState = replaceVars ./hplip.state {
···
# https://github.com/NixOS/nixpkgs/issues/44230
substituteInPlace createPPD.sh \
164
-
--replace ppdc "${cups}/bin/ppdc" \
165
-
--replace "gzip -c" "gzip -cn"
164
+
--replace-fail ppdc "${cups}/bin/ppdc" \
165
+
--replace-fail "gzip -c" "gzip -cn"
# HPLIP hardcodes absolute paths everywhere. Nuke from orbit.
find . -type f -exec sed -i \
···
"policykit_dir=${out}/share/polkit-1/actions"
"policykit_dbus_etcdir=${out}/etc/dbus-1/system.d"
"policykit_dbus_sharedir=${out}/share/dbus-1/system-services"
226
+
"PYTHONEXECDIR=${out}/lib/python${lib.versions.majorMinor python3Packages.python.version}/site-packages"
"hplip_confdir=${out}/etc/hp"
"hplip_statedir=${out}/var/lib/hp"
···
description = "Print, scan and fax HP drivers for Linux";
homepage = "https://developers.hp.com/hp-linux-imaging-and-printing";
downloadPage = "https://sourceforge.net/projects/hplip/files/hplip/";
357
+
lib.licenses.unfree
···
371
-
maintainers = with maintainers; [ ttuegel ];
372
+
maintainers = with lib.maintainers; [ ttuegel ];