2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, clang
|
|
|
|
, ffmpeg
|
|
|
|
, openssl
|
|
|
|
, alsa-lib
|
|
|
|
, libclang
|
|
|
|
, opencv
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "tplay";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.5.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maxcurzi";
|
|
|
|
repo = "tplay";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-/3ui0VOxf+kYfb0JQXPVbjAyXPph2LOg2xB0DGmAbwc=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
cargoHash = "sha256-zRkIEH37pvxHUbnfg25GW1Z7od9XMkRmP2Qvs64uUjg=";
|
2023-11-16 04:20:00 +00:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
pkg-config
|
|
|
|
clang
|
|
|
|
ffmpeg
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl.dev
|
|
|
|
alsa-lib.dev
|
|
|
|
libclang.lib
|
|
|
|
ffmpeg.dev
|
|
|
|
opencv
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Terminal Media Player";
|
|
|
|
homepage = "https://github.com/maxcurzi/tplay";
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ demine colemickens ];
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
}
|