git.iko.soy/typeable/nixpkgs
on master help sign in
udev: sane: fix udev error

The new udev checks that no script references any absolute /bin/sh paths, so this patches that out.

commit9a72bf5c0fa8c6d265c3fe0df5f2842b21519cd7 authorProfpatsch <mail@profpatsch.de> dateFri 5 Feb 2016, 14:49 (11 years ago) parent9a5a967
1 file changed+3
pkgs/applications/graphics/sane/backends/generic.nix+3
pkgs/applications/graphics/sane/backends/generic.nix+3
@@ -50,6 +50,9 @@ stdenv.mkDerivation {
5050 mkdir -p $out/etc/udev/rules.d/
5151 ./tools/sane-desc -m udev > $out/etc/udev/rules.d/49-libsane.rules || \
5252 cp tools/udev/libsane.rules $out/etc/udev/rules.d/49-libsane.rules
53+ # the created 49-libsane references /bin/sh
54+ substituteInPlace $out/etc/udev/rules.d/49-libsane.rules \
55+ -- replace "RUN+=\"/bin/sh" "RUN+=\"${stdenv.shell}"
5356
5457 substituteInPlace $out/lib/libsane.la \
5558 --replace "-ljpeg" "-L${libjpeg}/lib -ljpeg"