forked from mirrors/nixpkgs
parent
621218c3c1
commit
d54bc765b5
|
@ -2,6 +2,7 @@
|
|||
, pkgconfig
|
||||
, cups, zlib, libjpeg, libusb1, pythonPackages, sane-backends, dbus, usbutils
|
||||
, net_snmp, polkit
|
||||
, bash, coreutils, utillinux
|
||||
, qtSupport ? true, qt4, pyqt4
|
||||
, withPlugin ? false
|
||||
}:
|
||||
|
@ -112,8 +113,7 @@ stdenv.mkDerivation {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = stdenv.lib.optionalString withPlugin
|
||||
''
|
||||
postInstall = stdenv.lib.optionalString withPlugin ''
|
||||
sh ${plugin} --noexec --keep
|
||||
cd plugin_tmp
|
||||
|
||||
|
@ -175,6 +175,14 @@ stdenv.mkDerivation {
|
|||
wrapPythonProgramsIn $out/lib "$out $pythonPath"
|
||||
|
||||
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; {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
, pkgconfig
|
||||
, cups, zlib, libjpeg, libusb1, pythonPackages, sane-backends, dbus, usbutils
|
||||
, net_snmp, polkit
|
||||
, bash, coreutils, utillinux
|
||||
, qtSupport ? true, qt4, pyqt4
|
||||
, withPlugin ? false
|
||||
}:
|
||||
|
@ -112,8 +113,7 @@ stdenv.mkDerivation {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = stdenv.lib.optionalString withPlugin
|
||||
''
|
||||
postInstall = stdenv.lib.optionalString withPlugin ''
|
||||
sh ${plugin} --noexec --keep
|
||||
cd plugin_tmp
|
||||
|
||||
|
@ -175,6 +175,14 @@ stdenv.mkDerivation {
|
|||
wrapPythonProgramsIn $out/lib "$out $pythonPath"
|
||||
|
||||
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; {
|
||||
|
|
Loading…
Reference in a new issue