From 9a72bf5c0fa8c6d265c3fe0df5f2842b21519cd7 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 5 Feb 2016 14:49:27 +0100 Subject: udev: sane: fix udev error The new udev checks that no script references any absolute /bin/sh paths, so this patches that out. --- pkgs/applications/graphics/sane/backends/generic.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs/applications/graphics/sane/backends') diff --git a/pkgs/applications/graphics/sane/backends/generic.nix b/pkgs/applications/graphics/sane/backends/generic.nix index 8f46e647252e..2ee5e1ddcf51 100644 --- a/pkgs/applications/graphics/sane/backends/generic.nix +++ b/pkgs/applications/graphics/sane/backends/generic.nix @@ -50,6 +50,9 @@ stdenv.mkDerivation { mkdir -p $out/etc/udev/rules.d/ ./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 + # the created 49-libsane references /bin/sh + substituteInPlace $out/etc/udev/rules.d/49-libsane.rules \ + -- replace "RUN+=\"/bin/sh" "RUN+=\"${stdenv.shell}" substituteInPlace $out/lib/libsane.la \ --replace "-ljpeg" "-L${libjpeg}/lib -ljpeg" -- cgit 1.4.1