about summary refs log tree commit diff
path: root/pkgs/by-name/li
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-12-22 11:30:31 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2024-01-05 07:36:58 -0300
commit09efe009d0d1282558ffc536b3e9587101460211 (patch)
treede335b66e0d7322abc9dee21e63b4672a61099f0 /pkgs/by-name/li
parentf8c2dafb53091ac2b89d56834f279c2d99f51d35 (diff)
downloadnixlib-09efe009d0d1282558ffc536b3e9587101460211.tar
nixlib-09efe009d0d1282558ffc536b3e9587101460211.tar.gz
nixlib-09efe009d0d1282558ffc536b3e9587101460211.tar.bz2
nixlib-09efe009d0d1282558ffc536b3e9587101460211.tar.lz
nixlib-09efe009d0d1282558ffc536b3e9587101460211.tar.xz
nixlib-09efe009d0d1282558ffc536b3e9587101460211.tar.zst
nixlib-09efe009d0d1282558ffc536b3e9587101460211.zip
libmpdclient: migrate to by-name
Diffstat (limited to 'pkgs/by-name/li')
-rw-r--r--pkgs/by-name/li/libmpdclient/package.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/by-name/li/libmpdclient/package.nix b/pkgs/by-name/li/libmpdclient/package.nix
new file mode 100644
index 000000000000..2b34f57bfdfb
--- /dev/null
+++ b/pkgs/by-name/li/libmpdclient/package.nix
@@ -0,0 +1,30 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, meson
+, ninja
+, fixDarwinDylibNames
+}:
+
+stdenv.mkDerivation rec {
+  pname = "libmpdclient";
+  version = "2.21";
+
+  src = fetchFromGitHub {
+    owner  = "MusicPlayerDaemon";
+    repo   = pname;
+    rev    = "v${version}";
+    sha256 = "sha256-U9K/4uivK5lx/7mG71umKGzP/KWgnexooF7weGu4B78=";
+  };
+
+  nativeBuildInputs = [ meson ninja ]
+  ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
+
+  meta = with lib; {
+    description = "Client library for MPD (music player daemon)";
+    homepage = "https://www.musicpd.org/libs/libmpdclient/";
+    license = licenses.bsd2;
+    maintainers = with maintainers; [ ehmry AndersonTorres ];
+    platforms = platforms.unix;
+  };
+}