blob: 254c5511f9659efe3a5e0b85211a6be29f3a818f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
alsa-lib,
ffmpeg_6,
}:
rustPlatform.buildRustPackage {
pname = "rustplayer";
version = "1.1.2-unstable-2024-07-14";
src = fetchFromGitHub {
owner = "Kingtous";
repo = "RustPlayer";
rev = "29a16f01912bc3e92008c7ae2f9569c8d7250bd3";
hash = "sha256-+36dLp54rfNK0lSSTG5+J6y51NUtBhtwfhD7L23J5aY=";
};
# This patch is from the source
patches = [
./dynamic-lib.patch
];
cargoHash = "sha256-cfr5q44SzJ5iYm8cu/3+RkoPaoUklmOV/UbSdZZbu38=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
alsa-lib
openssl
ffmpeg_6
];
checkFlags = [
# network required
"--skip=fetch_and_play"
];
meta = {
homepage = "https://github.com/Kingtous/RustPlayer";
description = "Local audio player and network m3u8 radio player using a terminal interface";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ oluceps ];
platforms = lib.platforms.unix;
};
}
|