summary refs log tree commit diff
path: root/pkgs/applications/graphics/sane/backends/default.nix
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2022-08-08 12:00:00 +0000
committerGuillaume Girol <symphorien+git@xlumurb.eu>2022-08-08 12:00:00 +0000
commit358dcd9dc692a7095d683802b8f326e16bbc08fa (patch)
treee17200060c7179dd83f6527efcd118b59f3bd93d /pkgs/applications/graphics/sane/backends/default.nix
parent4bdf4169ad2896236895ca607a843f30c9680345 (diff)
downloadnixpkgs-358dcd9dc692a7095d683802b8f326e16bbc08fa.tar
nixpkgs-358dcd9dc692a7095d683802b8f326e16bbc08fa.tar.gz
nixpkgs-358dcd9dc692a7095d683802b8f326e16bbc08fa.tar.bz2
nixpkgs-358dcd9dc692a7095d683802b8f326e16bbc08fa.tar.lz
nixpkgs-358dcd9dc692a7095d683802b8f326e16bbc08fa.tar.xz
nixpkgs-358dcd9dc692a7095d683802b8f326e16bbc08fa.tar.zst
nixpkgs-358dcd9dc692a7095d683802b8f326e16bbc08fa.zip
sane-backends: install hwdb file
copied from debian https://jff.email/cgit/sane-backends.git/tree/debian/rules#n140
Diffstat (limited to 'pkgs/applications/graphics/sane/backends/default.nix')
-rw-r--r--pkgs/applications/graphics/sane/backends/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/graphics/sane/backends/default.nix b/pkgs/applications/graphics/sane/backends/default.nix
index 8c45f3a62ff..02f5025a563 100644
--- a/pkgs/applications/graphics/sane/backends/default.nix
+++ b/pkgs/applications/graphics/sane/backends/default.nix
@@ -82,9 +82,9 @@ stdenv.mkDerivation {
     '';
 
   in ''
-    mkdir -p $out/etc/udev/rules.d/
-    ./tools/sane-desc -m udev+hwdb -s doc/descriptions:doc/descriptions-external > $out/etc/udev/rules.d/49-libsane.rules || \
-    cp tools/udev/libsane.rules $out/etc/udev/rules.d/49-libsane.rules
+    mkdir -p $out/etc/udev/rules.d/ $out/etc/udev/hwdb.d
+    ./tools/sane-desc -m udev+hwdb -s doc/descriptions:doc/descriptions-external > $out/etc/udev/rules.d/49-libsane.rules
+    ./tools/sane-desc -m udev+hwdb -s doc/descriptions -m hwdb > $out/etc/udev/hwdb.d/20-sane.hwdb
     # the created 49-libsane references /bin/sh
     substituteInPlace $out/etc/udev/rules.d/49-libsane.rules \
       --replace "RUN+=\"/bin/sh" "RUN+=\"${runtimeShell}"