Files
nixpkgs/pkgs/by-name/ca/camset/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

68 lines
1.3 KiB
Nix

{
python3Packages,
fetchFromGitHub,
copyDesktopItems,
makeDesktopItem,
gobject-introspection,
v4l-utils,
wrapGAppsHook3,
lib,
}:
python3Packages.buildPythonApplication {
pname = "camset";
version = "0-unstable-2023-05-20";
pyproject = true;
src = fetchFromGitHub {
owner = "azeam";
repo = "camset";
rev = "b813ba9b1d29f2d46fad268df67bf3615a324f3e";
hash = "sha256-vTF3MJQi9fZZDlbEj5800H22GGWOte3+KZCpSnsSTaQ=";
};
build-system = with python3Packages; [ setuptools ];
nativeBuildInputs = [
gobject-introspection
wrapGAppsHook3
copyDesktopItems
];
dependencies = with python3Packages; [
pygobject3
opencv-python
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
--prefix PATH : ${lib.makeBinPath [ v4l-utils ]}
)
'';
desktopItems = [
(makeDesktopItem {
name = "camset";
exec = "camset";
icon = "camera";
comment = "Adjust webcam settings";
desktopName = "Camset";
categories = [
"Utility"
"Video"
];
type = "Application";
})
];
meta = {
description = "GUI for Video4Linux adjustments of webcams";
homepage = "https://github.com/azeam/camset";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ averdow ];
};
}