mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
udev: sane: fix udev error
The new udev checks that no script references any absolute /bin/sh paths, so this patches that out.
This commit is contained in:
parent
9a5a967d0d
commit
9a72bf5c0f
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue