blob: 344478d30ab167ba4449b705b2ed316a269ad6c2 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
rustPlatform,
fetchFromGitHub,
autoPatchelfHook,
pkg-config,
udev,
opencv,
clang,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "tuicam";
version = "0.0.3";
src = fetchFromGitHub {
owner = "hlsxx";
repo = "tuicam";
tag = "v${version}";
hash = "sha256-Ry64sd0OYGqbiVqveU05gsmf1c9kQy2QMN9Z5seMedc=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-z+5fVSl9zFdOFNCCf49iVltAm+rZcJtLsz+zLCUlC6o=";
nativeBuildInputs = [
autoPatchelfHook
pkg-config
clang
rustPlatform.bindgenHook
];
buildInputs = [
udev
opencv
];
# Test require Camera Hardware
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
description = "Terminal-based camera with switchable modes";
homepage = "https://github.com/hlsxx/tuicam";
changelog = "https://github.com/hlsxx/tuicam/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ FKouhai ];
platforms = lib.platforms.linux;
mainProgram = "tuicam";
};
}
|