blob: 620f2ee08842d3b72382248bab3171e4754686c9 (
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
55
56
57
58
59
|
{ lib
, rustPlatform
, fetchFromGitea
, pkg-config
, stdenv
, openssl
, libiconv
, sqlite
, Security
, SystemConfiguration
, CoreFoundation
, installShellFiles
, asciidoctor }:
rustPlatform.buildRustPackage rec {
pname = "listenbrainz-mpd";
version = "2.3.1";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "elomatreb";
repo = "listenbrainz-mpd";
rev = "v${version}";
hash = "sha256-rI6GBDUzI0pHjULoNKWZ4GKlrtpX/4x6Q1Q+DByNqRs=";
};
cargoHash = "sha256-8/0WkoDxUJz0QoQiDGHTuU7HmiY9nqUNPvztI0xmqvk=";
nativeBuildInputs = [ pkg-config installShellFiles asciidoctor ];
buildInputs = [ sqlite ] ++ (if stdenv.isDarwin then [
libiconv
Security
SystemConfiguration
CoreFoundation
] else [
openssl
]);
buildFeatures = [ "shell_completion" ];
postInstall = ''
installShellCompletion \
--bash generated_completions/listenbrainz-mpd.bash \
--fish generated_completions/listenbrainz-mpd.fish \
--zsh generated_completions/_listenbrainz-mpd
asciidoctor --backend=manpage listenbrainz-mpd.adoc -o listenbrainz-mpd.1
installManPage listenbrainz-mpd.1
'';
meta = with lib; {
homepage = "https://codeberg.org/elomatreb/listenbrainz-mpd";
changelog = "https://codeberg.org/elomatreb/listenbrainz-mpd/src/tag/v${version}/CHANGELOG.md";
description = "ListenBrainz submission client for MPD";
license = licenses.agpl3Only;
maintainers = with maintainers; [ DeeUnderscore ];
};
}
|