mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 16:11:58 +00:00
Merge pull request #81693 from lovesegfault/uvcdynctrl-udev
uvcdynctrl: fix udev files
This commit is contained in:
commit
d9a056953c
|
@ -15,9 +15,16 @@ stdenv.mkDerivation {
|
||||||
buildInputs = [ libxml2 ];
|
buildInputs = [ libxml2 ];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace uvcdynctrl/CMakeLists.txt \
|
local fixup_list=(
|
||||||
--replace "/etc/udev" "$out/etc/udev" \
|
uvcdynctrl/CMakeLists.txt
|
||||||
--replace "/lib/udev" "$out/lib/udev"
|
uvcdynctrl/udev/rules/80-uvcdynctrl.rules
|
||||||
|
uvcdynctrl/udev/scripts/uvcdynctrl
|
||||||
|
)
|
||||||
|
for f in "''${fixup_list[@]}"; do
|
||||||
|
substituteInPlace "$f" \
|
||||||
|
--replace "/etc/udev" "$out/etc/udev" \
|
||||||
|
--replace "/lib/udev" "$out/lib/udev"
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue