17 rustPlatform.buildRustPackage rec {
18 pname = "listenbrainz-mpd";
21 src = fetchFromGitea {
22 domain = "codeberg.org";
24 repo = "listenbrainz-mpd";
26 hash = "sha256-QBc0avci232UIxzTKlS0pjL7cCuvwAFgw6dSwdtYAtU=";
29 cargoHash = "sha256-jnDS9tIJ387A2P9oUSYB3tXrXjwwVmQ26erIIlHBkao=";
40 if stdenv.hostPlatform.isDarwin then
57 ++ lib.optionals stdenv.hostPlatform.isLinux [
62 installShellCompletion \
63 --bash generated_completions/listenbrainz-mpd.bash \
64 --fish generated_completions/listenbrainz-mpd.fish \
65 --zsh generated_completions/_listenbrainz-mpd
67 asciidoctor --backend=manpage listenbrainz-mpd.adoc -o listenbrainz-mpd.1
68 installManPage listenbrainz-mpd.1
72 homepage = "https://codeberg.org/elomatreb/listenbrainz-mpd";
73 changelog = "https://codeberg.org/elomatreb/listenbrainz-mpd/src/tag/v${version}/CHANGELOG.md";
74 description = "ListenBrainz submission client for MPD";
75 license = licenses.agpl3Only;
76 maintainers = with maintainers; [ DeeUnderscore ];
77 mainProgram = "listenbrainz-mpd";