nixpkgs/pkgs/servers/mpd/libmpdclient.nix
2021-12-10 03:53:53 +00:00

30 lines
702 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, fixDarwinDylibNames
}:
stdenv.mkDerivation rec {
pname = "libmpdclient";
version = "2.20";
src = fetchFromGitHub {
owner = "MusicPlayerDaemon";
repo = pname;
rev = "v${version}";
sha256 = "sha256-qEgdwG7ygVblIa3uRf1tddxHg7T1yvY17nbhZ7NRNvg=";
};
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;
};
}