saneBackends: remove udevSupport == hotplugSupport

This commit is contained in:
Tobias Geerinckx-Rice 2015-12-23 17:30:27 +01:00
parent 6a76cd1336
commit fd9e991616

View File

@ -9,11 +9,6 @@
assert hotplugSupport -> assert hotplugSupport ->
builtins.elem stdenv.system [ "i686-linux" "x86_64-linux" ]; builtins.elem stdenv.system [ "i686-linux" "x86_64-linux" ];
let
udevSupport = hotplugSupport;
in
stdenv.mkDerivation { stdenv.mkDerivation {
inherit src; inherit src;
@ -30,7 +25,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ gettext pkgconfig ]; nativeBuildInputs = [ gettext pkgconfig ];
postInstall = '' postInstall = ''
if test "$udevSupport" = "1"; then if test "$hotplugSupport" = "1"; then
mkdir -p $out/etc/udev/rules.d/ mkdir -p $out/etc/udev/rules.d/
./tools/sane-desc -m udev > $out/etc/udev/rules.d/49-libsane.rules || \ ./tools/sane-desc -m udev > $out/etc/udev/rules.d/49-libsane.rules || \
cp tools/udev/libsane.rules $out/etc/udev/rules.d/49-libsane.rules cp tools/udev/libsane.rules $out/etc/udev/rules.d/49-libsane.rules