blob: 7b325afb9be95e6621df56ac1317d660303ef2b4 (
plain) (
blame)
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
52
53
54
|
{ alsa-lib
, dbus
, fetchFromGitHub
, lib
, openssl
, pkg-config
, rustPlatform
, stdenv
,
}:
rustPlatform.buildRustPackage rec {
pname = "ytermusic";
version = "0.1.0";
src = fetchFromGitHub {
owner = "ccgauche";
repo = "ytermusic";
rev = "beta-${version}";
hash = "sha256-nu/vedQNs5TgCG1v5qwwDTnFTyXCS2KnLVrnEhCtzCs=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"rusty_ytdl-0.6.6" = "sha256-htXD8v9Yd7S0iLjP6iZu94tP5KO5vbmkdUybqA7OtlU=";
"symphonia-0.5.1" = "sha256-rGvde5w7czMLcOPARK1gFfDLn70VeIrn4nKOL6FPc2U=";
};
};
postPatch = "cp ${./Cargo.lock} Cargo.lock";
doCheck = true;
cargoBuildType = "release";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
alsa-lib
dbus
];
meta = {
description = "TUI based Youtube Music Player that aims to be as fast and simple as possible";
homepage = "https://github.com/ccgauche/ytermusic";
changelog = "https://github.com/ccgauche/ytermusic/releases/tag/${src.rev}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ codebam ];
mainProgram = "ytermusic";
};
}
|