mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
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
).
This commit is contained in:
commit
c0cbb46fde
@ -50,6 +50,9 @@ stdenv.mkDerivation {
|
|||||||
mkdir -p $out/etc/udev/rules.d/
|
mkdir -p $out/etc/udev/rules.d/
|
||||||
./tools/sane-desc -m udev > $out/etc/udev/rules.d/49-libsane.rules || \
|
./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
|
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 \
|
substituteInPlace $out/lib/libsane.la \
|
||||||
--replace "-ljpeg" "-L${libjpeg}/lib -ljpeg"
|
--replace "-ljpeg" "-L${libjpeg}/lib -ljpeg"
|
||||||
|
Loading…
Reference in New Issue
Block a user