mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
saneBackends: remove udevSupport == hotplugSupport
This commit is contained in:
parent
6a76cd1336
commit
fd9e991616
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user