blob: 3ed6dc7de8d16b90aee1af30e1215926aebd5914 (
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
53
54
55
56
57
58
59
60
61
62
|
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
clang,
ffmpeg_6-headless,
openssl,
alsa-lib,
opencv,
makeWrapper,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "tplay";
version = "0.6.3";
src = fetchFromGitHub {
owner = "maxcurzi";
repo = "tplay";
rev = "v${finalAttrs.version}";
hash = "sha256-JVkezG2bs99IFOTONeZZRljjbi0EhFf+DMxcfiWI4p4=";
};
cargoHash = "sha256-LHRTmjAwDPMOP6YQfL01leEzqRKtteU1cnUqL6UeWKk=";
checkFlags = [
# requires network access
"--skip=pipeline::image_pipeline::tests::test_process"
"--skip=pipeline::image_pipeline::tests::test_to_ascii"
"--skip=pipeline::image_pipeline::tests::test_to_ascii_ext"
"--skip=pipeline::runner::tests::test_time_to_send_next_frame"
];
nativeBuildInputs = [
rustPlatform.bindgenHook
pkg-config
clang
makeWrapper
];
buildInputs = [
openssl.dev
alsa-lib.dev
ffmpeg_6-headless.dev
opencv
];
postFixup = ''
wrapProgram $out/bin/tplay \
--prefix PATH : "${lib.makeBinPath [ ffmpeg_6-headless ]}"
'';
meta = {
description = "Terminal Media Player";
homepage = "https://github.com/maxcurzi/tplay";
platforms = lib.platforms.linux;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
demine
colemickens
];
};
})
|