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