mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
camset: init at 0-unstable-2023-05-20
This commit is contained in:
parent
0383e29c5e
commit
7dd4c4c29e
1 changed files with 67 additions and 0 deletions
67
pkgs/by-name/ca/camset/package.nix
Normal file
67
pkgs/by-name/ca/camset/package.nix
Normal file
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue