diff options
Diffstat (limited to 'pkgs/by-name/tp/tplay/package.nix')
-rw-r--r-- | pkgs/by-name/tp/tplay/package.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/by-name/tp/tplay/package.nix b/pkgs/by-name/tp/tplay/package.nix new file mode 100644 index 00000000000..619192ddf50 --- /dev/null +++ b/pkgs/by-name/tp/tplay/package.nix @@ -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 ]; + }; +} |