git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #34252 from bkchr/hplip_fixes

hplip: Fixes runtime errors

commitac4f896fc6ce0f879e6b7798a7375f2150544e17 authoradisbladis <adisbladis@gmail.com> dateTue 30 Jan 2018, 17:47 (9 years ago) parent6c744fc9abc4a5
1 file changed+8−9
pkgs/misc/drivers/hplip/default.nix+8−9
pkgs/misc/drivers/hplip/default.nix+8−9
@@ -78,12 +78,12 @@ pythonPackages.buildPythonApplication {
7878 prePatch = ''
7979 # HPLIP hardcodes absolute paths everywhere. Nuke from orbit.
8080 find . -type f -exec sed -i \
81− -e s,/etc/hp,$out/etc/hp, \
82− -e s,/etc/sane.d,$out/etc/sane.d, \
83− -e s,/usr/include/libusb-1.0,${libusb1.dev}/include/libusb-1.0, \
84− -e s,/usr/share/hal/fdi/preprobe/10osvendor,$out/share/hal/fdi/preprobe/10osvendor, \
85− -e s,/usr/lib/systemd/system,$out/lib/systemd/system, \
86− -e s,/var/lib/hp,$out/var/lib/hp, \
81+ -e s,/etc/hp,$out/etc/hp,g \
82+ -e s,/etc/sane.d,$out/etc/sane.d,g \
83+ -e s,/usr/include/libusb-1.0,${libusb1.dev}/include/libusb-1.0,g \
84+ -e s,/usr/share/hal/fdi/preprobe/10osvendor,$out/share/hal/fdi/preprobe/10osvendor,g \
85+ -e s,/usr/lib/systemd/system,$out/lib/systemd/system,g \
86+ -e s,/var/lib/hp,$out/var/lib/hp,g \
8787 {} +
8888 '';
8989
@@ -96,6 +96,8 @@ pythonPackages.buildPythonApplication {
9696 --with-systraydir=$out/xdg/autostart
9797 --with-mimedir=$out/etc/cups
9898 --enable-policykit
99+ --disable-qt4
100+ ${stdenv.lib.optionals withQt5 "--enable-qt5"}
99101 "
100102
101103 export makeFlags="
@@ -140,9 +142,6 @@ pythonPackages.buildPythonApplication {
140142 mkdir -p $out/var/lib/hp
141143 cp ${hplipState} $out/var/lib/hp/hplip.state
142144
143− mkdir -p $out/etc/sane.d/dll.d
144− mv $out/etc/sane.d/dll.conf $out/etc/sane.d/dll.d/hpaio.conf
145−
146145 rm $out/etc/udev/rules.d/56-hpmud.rules
147146 '';
148147