2021-01-19 09:50:56 +03:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libxml2 }:
|
2017-10-26 13:10:28 +03:00
|
|
|
|
2019-08-14 00:52:01 +03:00
|
|
|
stdenv.mkDerivation {
|
2017-10-26 13:10:28 +03:00
|
|
|
version = "0.3.0";
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "uvcdynctrl";
|
2017-10-26 13:10:28 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cshorler";
|
|
|
|
repo = "webcam-tools";
|
|
|
|
rev = "bee2ef3c9e350fd859f08cd0e6745871e5f55cb9";
|
|
|
|
sha256 = "0s15xxgdx8lnka7vi8llbf6b0j4rhbjl6yp0qxaihysf890xj73s";
|
|
|
|
};
|
|
|
|
|
2021-01-19 09:50:56 +03:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-10-26 13:10:28 +03:00
|
|
|
buildInputs = [ libxml2 ];
|
|
|
|
|
|
|
|
prePatch = ''
|
2020-03-04 09:41:09 +03:00
|
|
|
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
|
2017-10-26 13:10:28 +03:00
|
|
|
'';
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2017-10-26 13:10:28 +03:00
|
|
|
description = "A simple interface for devices supported by the linux UVC driver";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "http://guvcview.sourceforge.net";
|
2017-10-26 13:10:28 +03:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.puffnfresh ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|