Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / tp / tplay / package.nix
blob37bf1db7d198fe37622bcb0c919efe4e33e47eb7
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , clang
6 , ffmpeg
7 , openssl
8 , alsa-lib
9 , libclang
10 , opencv
12 rustPlatform.buildRustPackage rec {
13   pname = "tplay";
14   version = "0.5.0";
16   src = fetchFromGitHub {
17     owner = "maxcurzi";
18     repo = "tplay";
19     rev =  "v${version}";
20     hash = "sha256-/3ui0VOxf+kYfb0JQXPVbjAyXPph2LOg2xB0DGmAbwc=";
21   };
23   cargoHash = "sha256-zRkIEH37pvxHUbnfg25GW1Z7od9XMkRmP2Qvs64uUjg=";
24   checkFlags = [
25         # requires network access
26     "--skip=pipeline::image_pipeline::tests::test_process"
27     "--skip=pipeline::image_pipeline::tests::test_to_ascii"
28     "--skip=pipeline::image_pipeline::tests::test_to_ascii_ext"
29     "--skip=pipeline::runner::tests::test_time_to_send_next_frame"
30   ];
32   nativeBuildInputs = [
33     rustPlatform.bindgenHook
34     pkg-config
35     clang
36     ffmpeg
37   ];
39   buildInputs = [
40     openssl.dev
41     alsa-lib.dev
42     libclang.lib
43     ffmpeg.dev
44     opencv
45   ];
47   meta = {
48     description = "Terminal Media Player";
49     homepage = "https://github.com/maxcurzi/tplay";
50     platforms = lib.platforms.linux;
51     license = lib.licenses.mit;
52     maintainers = with lib.maintainers; [ demine colemickens ];
53   };