hplip: use lib.optionals for clarity

This commit is contained in:
Tobias Geerinckx-Rice 2015-11-20 21:16:40 +01:00
parent 612a0f248b
commit 729b764c53

View File

@ -53,7 +53,10 @@ stdenv.mkDerivation {
saneBackends saneBackends
dbus dbus
net_snmp net_snmp
] ++ stdenv.lib.optional qtSupport qt4; ] ++ stdenv.lib.optionals qtSupport [
qt4
];
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig pkgconfig
]; ];
@ -65,7 +68,9 @@ stdenv.mkDerivation {
recursivePthLoader recursivePthLoader
reportlab reportlab
usbutils usbutils
] ++ stdenv.lib.optional qtSupport pyqt4; ] ++ stdenv.lib.optionals qtSupport [
pyqt4
];
prePatch = '' prePatch = ''
# HPLIP hardcodes absolute paths everywhere. Nuke from orbit. # HPLIP hardcodes absolute paths everywhere. Nuke from orbit.