Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
libxml2,
|
|
udevCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
version = "0.3.0";
|
|
pname = "uvcdynctrl";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cshorler";
|
|
repo = "webcam-tools";
|
|
rev = "bee2ef3c9e350fd859f08cd0e6745871e5f55cb9";
|
|
sha256 = "0s15xxgdx8lnka7vi8llbf6b0j4rhbjl6yp0qxaihysf890xj73s";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
udevCheckHook
|
|
];
|
|
buildInputs = [ libxml2 ];
|
|
|
|
prePatch = ''
|
|
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
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Simple interface for devices supported by the linux UVC driver";
|
|
homepage = "https://guvcview.sourceforge.net";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.puffnfresh ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|