Merge pull request #326232 from iynaix/tplay-ffprobe-runtime
tplay: fix runtime ffprobe dependency
This commit is contained in:
commit
d633595bac
@ -1,13 +1,15 @@
|
|||||||
{ lib
|
{
|
||||||
, rustPlatform
|
lib,
|
||||||
, fetchFromGitHub
|
rustPlatform,
|
||||||
, pkg-config
|
fetchFromGitHub,
|
||||||
, clang
|
pkg-config,
|
||||||
, ffmpeg
|
clang,
|
||||||
, openssl
|
ffmpeg,
|
||||||
, alsa-lib
|
openssl,
|
||||||
, libclang
|
alsa-lib,
|
||||||
, opencv
|
libclang,
|
||||||
|
opencv,
|
||||||
|
makeWrapper,
|
||||||
}:
|
}:
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "tplay";
|
pname = "tplay";
|
||||||
@ -16,13 +18,13 @@ rustPlatform.buildRustPackage rec {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "maxcurzi";
|
owner = "maxcurzi";
|
||||||
repo = "tplay";
|
repo = "tplay";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-/3ui0VOxf+kYfb0JQXPVbjAyXPph2LOg2xB0DGmAbwc=";
|
hash = "sha256-/3ui0VOxf+kYfb0JQXPVbjAyXPph2LOg2xB0DGmAbwc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-zRkIEH37pvxHUbnfg25GW1Z7od9XMkRmP2Qvs64uUjg=";
|
cargoHash = "sha256-zRkIEH37pvxHUbnfg25GW1Z7od9XMkRmP2Qvs64uUjg=";
|
||||||
checkFlags = [
|
checkFlags = [
|
||||||
# requires network access
|
# requires network access
|
||||||
"--skip=pipeline::image_pipeline::tests::test_process"
|
"--skip=pipeline::image_pipeline::tests::test_process"
|
||||||
"--skip=pipeline::image_pipeline::tests::test_to_ascii"
|
"--skip=pipeline::image_pipeline::tests::test_to_ascii"
|
||||||
"--skip=pipeline::image_pipeline::tests::test_to_ascii_ext"
|
"--skip=pipeline::image_pipeline::tests::test_to_ascii_ext"
|
||||||
@ -34,6 +36,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
pkg-config
|
pkg-config
|
||||||
clang
|
clang
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -44,11 +47,19 @@ rustPlatform.buildRustPackage rec {
|
|||||||
opencv
|
opencv
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/tplay \
|
||||||
|
--prefix PATH : "${lib.makeBinPath [ ffmpeg ]}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Terminal Media Player";
|
description = "Terminal Media Player";
|
||||||
homepage = "https://github.com/maxcurzi/tplay";
|
homepage = "https://github.com/maxcurzi/tplay";
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ demine colemickens ];
|
maintainers = with lib.maintainers; [
|
||||||
|
demine
|
||||||
|
colemickens
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user