From fd9e991616b57473e059542ad7b70cf692323d43 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 23 Dec 2015 17:30:27 +0100 Subject: [PATCH] saneBackends: remove udevSupport == hotplugSupport --- pkgs/applications/graphics/sane/backends/generic.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkgs/applications/graphics/sane/backends/generic.nix b/pkgs/applications/graphics/sane/backends/generic.nix index e617bcc814d..a8963b438b8 100644 --- a/pkgs/applications/graphics/sane/backends/generic.nix +++ b/pkgs/applications/graphics/sane/backends/generic.nix @@ -9,11 +9,6 @@ assert hotplugSupport -> builtins.elem stdenv.system [ "i686-linux" "x86_64-linux" ]; -let - - udevSupport = hotplugSupport; - -in stdenv.mkDerivation { inherit src; @@ -30,7 +25,7 @@ stdenv.mkDerivation { nativeBuildInputs = [ gettext pkgconfig ]; postInstall = '' - if test "$udevSupport" = "1"; then + if test "$hotplugSupport" = "1"; then mkdir -p $out/etc/udev/rules.d/ ./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