2023-10-19 13:55:26 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, alsa-lib
|
2024-09-19 14:19:46 +00:00
|
|
|
, ffmpeg_6
|
2023-10-19 13:55:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "rustplayer";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.1.2-unstable-2024-07-14";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Kingtous";
|
|
|
|
repo = "RustPlayer";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "29a16f01912bc3e92008c7ae2f9569c8d7250bd3";
|
|
|
|
hash = "sha256-+36dLp54rfNK0lSSTG5+J6y51NUtBhtwfhD7L23J5aY=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# This patch is from the source
|
|
|
|
patches = [
|
|
|
|
./dynamic-lib.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2024-09-19 14:19:46 +00:00
|
|
|
"ffmpeg-sys-next-6.0.1" = "sha256-/CcyWDPeVLVSV8NfWFJhj1tGmuqLPnnyvVosIXM27NI=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
|
2024-09-19 14:19:46 +00:00
|
|
|
buildInputs = [ alsa-lib openssl ffmpeg_6 ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# network required
|
|
|
|
"--skip=fetch_and_play"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Kingtous/RustPlayer";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Local audio player and network m3u8 radio player using a terminal interface";
|
2023-10-19 13:55:26 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ oluceps ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|