git.iko.soy/typeable/nixpkgs
on master help sign in
saneBackends: don't add option for 1 udev rule
commitcf699caf4d9be4445b3516f9b9b362dd3d442edf authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> dateFri 25 Dec 2015, 15:56 (11 years ago) parentf3048ae
2 files changed+3−11
pkgs/applications/graphics/sane/backends/generic.nix+3−9 pkgs/top-level/all-packages.nix−2
pkgs/applications/graphics/sane/backends/generic.nix+3−9
@@ -2,13 +2,9 @@
22, avahi, libusb1, libv4l, net_snmp
33, gettext, pkgconfig
44, gt68xxFirmware ? null, snapscanFirmware ? null
5−, hotplugSupport ? true
65, version, src, ...
76}:
87
9−assert hotplugSupport ->
10− builtins.elem stdenv.system [ "i686-linux" "x86_64-linux" ];
11−
128stdenv.mkDerivation {
139 inherit src;
1410
@@ -25,11 +21,9 @@ stdenv.mkDerivation {
2521 nativeBuildInputs = [ gettext pkgconfig ];
2622
2723 postInstall = ''
28− if test "$hotplugSupport" = "1"; then
29− mkdir -p $out/etc/udev/rules.d/
30− ./tools/sane-desc -m udev > $out/etc/udev/rules.d/49-libsane.rules || \
31− cp tools/udev/libsane.rules $out/etc/udev/rules.d/49-libsane.rules
32− fi
24+ mkdir -p $out/etc/udev/rules.d/
25+ ./tools/sane-desc -m udev > $out/etc/udev/rules.d/49-libsane.rules || \
26+ cp tools/udev/libsane.rules $out/etc/udev/rules.d/49-libsane.rules
3327 '';
3428
3529 preInstall =
pkgs/top-level/all-packages.nix−2
@@ -15542,13 +15542,11 @@ let
1554215542 saneBackends = callPackage ../applications/graphics/sane/backends {
1554315543 gt68xxFirmware = config.sane.gt68xxFirmware or null;
1554415544 snapscanFirmware = config.sane.snapscanFirmware or null;
15545− hotplugSupport = config.sane.hotplugSupport or true;
1554615545 };
1554715546
1554815547 saneBackendsGit = callPackage ../applications/graphics/sane/backends/git.nix {
1554915548 gt68xxFirmware = config.sane.gt68xxFirmware or null;
1555015549 snapscanFirmware = config.sane.snapscanFirmware or null;
15551− hotplugSupport = config.sane.hotplugSupport or true;
1555215550 };
1555315551
1555415552 mkSaneConfig = callPackage ../applications/graphics/sane/config.nix { };