git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #12874 from Profpatsch/udev

This fixes an error when enabling SANE while building the udev rules files for a particular system, which was caused by #12804 (merged in 9807acb).

commitc0cbb46fde3c423a17b27cb3fc0792aa3795264f authoraszlig <aszlig@redmoonstudios.org> dateMon 8 Feb 2016, 16:42 (11 years ago) parent37d67b09a72bf5
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"