1
0
Fork 1
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:
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 ]; 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; {