mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
clang,
|
|
ffmpeg,
|
|
openssl,
|
|
alsa-lib,
|
|
libclang,
|
|
opencv,
|
|
makeWrapper,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tplay";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "maxcurzi";
|
|
repo = "tplay";
|
|
rev = "v${version}";
|
|
hash = "sha256-SRn7kg5FdSimKMFowKNUIan+MrojtNO0apeehIRTzfw=";
|
|
};
|
|
|
|
cargoHash = "sha256-ztWs20Vl+fX0enL12pybiM6lhFh0/EFa1aSTRpzz64g=";
|
|
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 = [
|
|
rustPlatform.bindgenHook
|
|
pkg-config
|
|
clang
|
|
ffmpeg
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl.dev
|
|
alsa-lib.dev
|
|
(lib.getLib libclang)
|
|
ffmpeg.dev
|
|
opencv
|
|
];
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/tplay \
|
|
--prefix PATH : "${lib.makeBinPath [ ffmpeg ]}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Terminal Media Player";
|
|
homepage = "https://github.com/maxcurzi/tplay";
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
demine
|
|
colemickens
|
|
];
|
|
};
|
|
}
|