2021-02-10 14:03:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, fixDarwinDylibNames
|
|
|
|
}:
|
2011-12-05 01:32:25 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libmpdclient";
|
2021-12-10 03:53:53 +00:00
|
|
|
version = "2.20";
|
2013-09-23 14:41:04 +01:00
|
|
|
|
2017-06-09 05:54:29 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MusicPlayerDaemon";
|
2021-02-10 14:03:53 +00:00
|
|
|
repo = pname;
|
2017-06-09 05:54:29 +01:00
|
|
|
rev = "v${version}";
|
2021-12-10 03:53:53 +00:00
|
|
|
sha256 = "sha256-qEgdwG7ygVblIa3uRf1tddxHg7T1yvY17nbhZ7NRNvg=";
|
2011-12-05 01:32:25 +00:00
|
|
|
};
|
|
|
|
|
2018-01-31 06:50:20 +00:00
|
|
|
nativeBuildInputs = [ meson ninja ]
|
2021-01-15 07:07:56 +00:00
|
|
|
++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
2013-09-23 14:41:04 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2011-12-05 01:32:25 +00:00
|
|
|
description = "Client library for MPD (music player daemon)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.musicpd.org/libs/libmpdclient/";
|
2021-02-10 14:03:53 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ ehmry AndersonTorres ];
|
2015-04-17 15:38:13 +01:00
|
|
|
platforms = platforms.unix;
|
2011-12-05 01:32:25 +00:00
|
|
|
};
|
|
|
|
}
|