uvcdynctrl: fix udev files

This commit is contained in:
Bernardo Meurer 2020-03-03 22:41:09 -08:00
parent 926a875def
commit fe9b7e6281
No known key found for this signature in database
GPG key ID: E421C74191EA186C

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; {