tplay: init at 0.4.5 (#266300)

* maintainers: add demine

* tplay: init at 0.4.5
This commit is contained in:
Demine 2023-11-13 17:57:48 +03:00 committed by GitHub
parent 771cae0903
commit d1df76655e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 70 additions and 0 deletions

View File

@ -4251,6 +4251,12 @@
githubId = 5503422;
name = "Dmitriy Demin";
};
demine = {
email = "riches_tweaks0o@icloud.com";
github = "demine0";
githubId = 51992962;
name = "Nikita Demin";
};
demize = {
email = "johannes@kyriasis.com";
github = "kyrias";

View File

@ -0,0 +1,13 @@
diff --git a/Cargo.lock b/Cargo.lock
index 0eb70e4..8d81ba0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2069,7 +2069,7 @@ checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52"
[[package]]
name = "tplay"
-version = "0.4.4"
+version = "0.4.5"
dependencies = [
"clap",
"crossbeam-channel",

View File

@ -0,0 +1,51 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, clang
, ffmpeg
, openssl
, alsa-lib
, libclang
, opencv
}:
rustPlatform.buildRustPackage rec {
pname = "tplay";
version = "0.4.5";
src = fetchFromGitHub {
owner = "maxcurzi";
repo = "tplay";
rev = "v${version}";
hash = "sha256-qt5I5rel88NWJZ6dYLCp063PfVmGTzkUUKgF3JkhLQk=";
};
cargoHash = "sha256-0kHh7Wb9Dp+t2G9/Kz/3K43bQdFCl+q2Vc3W32koc2I=";
cargoPatches = [ ./cargo.diff ];
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 = [ pkg-config clang ffmpeg ];
buildInputs = [
openssl.dev
alsa-lib.dev
libclang.lib
ffmpeg.dev
opencv
];
env.LIBCLANG_PATH = "${libclang.lib}/lib";
meta = {
description = "Terminal Media Player";
homepage = "https://github.com/maxcurzi/tplay";
platforms = lib.platforms.linux;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ demine ];
};
}