diff options
author | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-12-25 15:56:05 +0100 |
---|---|---|
committer | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-12-26 19:50:17 +0100 |
commit | cf699caf4d9be4445b3516f9b9b362dd3d442edf (patch) | |
tree | ae10e6b58d13b2b834b684f09135340559101abe /pkgs/applications | |
parent | f3048aed1d8b1461a89a2fcd60e7d2994d80d429 (diff) |
saneBackends: don't add option for 1 udev rule
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/graphics/sane/backends/generic.nix | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/pkgs/applications/graphics/sane/backends/generic.nix b/pkgs/applications/graphics/sane/backends/generic.nix index a8963b438b8f6..9fbeb61261499 100644 --- a/pkgs/applications/graphics/sane/backends/generic.nix +++ b/pkgs/applications/graphics/sane/backends/generic.nix @@ -2,13 +2,9 @@ , avahi, libusb1, libv4l, net_snmp , gettext, pkgconfig , gt68xxFirmware ? null, snapscanFirmware ? null -, hotplugSupport ? true , version, src, ... }: -assert hotplugSupport -> - builtins.elem stdenv.system [ "i686-linux" "x86_64-linux" ]; - stdenv.mkDerivation { inherit src; @@ -25,11 +21,9 @@ stdenv.mkDerivation { nativeBuildInputs = [ gettext pkgconfig ]; postInstall = '' - 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 - fi + 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 ''; preInstall = |