parent
621218c3c1
commit
d54bc765b5
@ -2,6 +2,7 @@
|
|||||||
, pkgconfig
|
, pkgconfig
|
||||||
, cups, zlib, libjpeg, libusb1, pythonPackages, sane-backends, dbus, usbutils
|
, cups, zlib, libjpeg, libusb1, pythonPackages, sane-backends, dbus, usbutils
|
||||||
, net_snmp, polkit
|
, net_snmp, polkit
|
||||||
|
, bash, coreutils, utillinux
|
||||||
, qtSupport ? true, qt4, pyqt4
|
, qtSupport ? true, qt4, pyqt4
|
||||||
, withPlugin ? false
|
, withPlugin ? false
|
||||||
}:
|
}:
|
||||||
@ -112,8 +113,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
postInstall = stdenv.lib.optionalString withPlugin
|
postInstall = stdenv.lib.optionalString withPlugin ''
|
||||||
''
|
|
||||||
sh ${plugin} --noexec --keep
|
sh ${plugin} --noexec --keep
|
||||||
cd plugin_tmp
|
cd plugin_tmp
|
||||||
|
|
||||||
@ -175,6 +175,14 @@ stdenv.mkDerivation {
|
|||||||
wrapPythonProgramsIn $out/lib "$out $pythonPath"
|
wrapPythonProgramsIn $out/lib "$out $pythonPath"
|
||||||
|
|
||||||
substituteInPlace $out/etc/hp/hplip.conf --replace /usr $out
|
substituteInPlace $out/etc/hp/hplip.conf --replace /usr $out
|
||||||
|
'' + stdenv.lib.optionalString (!withPlugin) ''
|
||||||
|
# A udev rule to notify users that they need the binary plugin.
|
||||||
|
# Needs a lot of patching but might save someone a bit of confusion:
|
||||||
|
substituteInPlace $out/etc/udev/rules.d/56-hpmud.rules \
|
||||||
|
--replace {,${bash}}/bin/sh \
|
||||||
|
--replace {/usr,${coreutils}}/bin/nohup \
|
||||||
|
--replace {,${utillinux}/bin/}logger \
|
||||||
|
--replace {/usr,$out}/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
, pkgconfig
|
, pkgconfig
|
||||||
, cups, zlib, libjpeg, libusb1, pythonPackages, sane-backends, dbus, usbutils
|
, cups, zlib, libjpeg, libusb1, pythonPackages, sane-backends, dbus, usbutils
|
||||||
, net_snmp, polkit
|
, net_snmp, polkit
|
||||||
|
, bash, coreutils, utillinux
|
||||||
, qtSupport ? true, qt4, pyqt4
|
, qtSupport ? true, qt4, pyqt4
|
||||||
, withPlugin ? false
|
, withPlugin ? false
|
||||||
}:
|
}:
|
||||||
@ -112,8 +113,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
postInstall = stdenv.lib.optionalString withPlugin
|
postInstall = stdenv.lib.optionalString withPlugin ''
|
||||||
''
|
|
||||||
sh ${plugin} --noexec --keep
|
sh ${plugin} --noexec --keep
|
||||||
cd plugin_tmp
|
cd plugin_tmp
|
||||||
|
|
||||||
@ -175,6 +175,14 @@ stdenv.mkDerivation {
|
|||||||
wrapPythonProgramsIn $out/lib "$out $pythonPath"
|
wrapPythonProgramsIn $out/lib "$out $pythonPath"
|
||||||
|
|
||||||
substituteInPlace $out/etc/hp/hplip.conf --replace /usr $out
|
substituteInPlace $out/etc/hp/hplip.conf --replace /usr $out
|
||||||
|
'' + stdenv.lib.optionalString (!withPlugin) ''
|
||||||
|
# A udev rule to notify users that they need the binary plugin.
|
||||||
|
# Needs a lot of patching but might save someone a bit of confusion:
|
||||||
|
substituteInPlace $out/etc/udev/rules.d/56-hpmud.rules \
|
||||||
|
--replace {,${bash}}/bin/sh \
|
||||||
|
--replace {/usr,${coreutils}}/bin/nohup \
|
||||||
|
--replace {,${utillinux}/bin/}logger \
|
||||||
|
--replace {/usr,$out}/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user