Merge pull request #81693 from lovesegfault/uvcdynctrl-udev

uvcdynctrl: fix udev files
This commit is contained in:
worldofpeace 2020-04-07 23:38:50 -04:00 committed by GitHub
commit d9a056953c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,9 +15,16 @@ stdenv.mkDerivation {
buildInputs = [ libxml2 ];
prePatch = ''
substituteInPlace uvcdynctrl/CMakeLists.txt \
--replace "/etc/udev" "$out/etc/udev" \
--replace "/lib/udev" "$out/lib/udev"
local fixup_list=(
uvcdynctrl/CMakeLists.txt
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; {