about summary refs log tree commit diff
path: root/pkgs/applications/audio/listenbrainz-mpd
diff options
context:
space:
mode:
authorD Anzorge <d.anzorge@gmail.com>2023-02-13 22:04:36 +0100
committerD Anzorge <d.anzorge@gmail.com>2023-02-14 18:40:35 +0100
commitc09076d5d94a84af5866f10a6ef4ae23f9de6fcb (patch)
treefea31483a53f82d48d02211fec553372d496f571 /pkgs/applications/audio/listenbrainz-mpd
parent1f27152eb57f5407a71ff64e0ccbba5245e51bbf (diff)
listenbrainz-mpd: init at 2.0.2
Diffstat (limited to 'pkgs/applications/audio/listenbrainz-mpd')
-rw-r--r--pkgs/applications/audio/listenbrainz-mpd/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/audio/listenbrainz-mpd/default.nix b/pkgs/applications/audio/listenbrainz-mpd/default.nix
new file mode 100644
index 0000000000000..04216bdf09f6f
--- /dev/null
+++ b/pkgs/applications/audio/listenbrainz-mpd/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, rustPlatform
+, fetchFromGitea
+, pkg-config
+, stdenv
+, openssl
+, libiconv
+, Security }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "listenbrainz-mpd";
+  version = "2.0.2";
+
+  src = fetchFromGitea {
+    domain = "codeberg.org";
+    owner = "elomatreb";
+    repo = "listenbrainz-mpd";
+    rev = "v${version}";
+    hash = "sha256-DO7YUqaJZyVWjiAZ9WIVNTTvOU0qdsI2ct7aT/6O5dQ=";
+  };
+
+  cargoHash = "sha256-MiAalxe0drRHrST3maVvi8GM2y3d0z4Zl7R7Zx8VjEM=";
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = if stdenv.isDarwin then [ libiconv Security ] else [ openssl ];
+
+  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 ];
+  };
+}