2023-12-22 14:54:27 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, fixDarwinDylibNames
|
|
|
|
, lib
|
2021-02-10 14:03:53 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2023-12-22 14:54:27 +00:00
|
|
|
, stdenv
|
2021-02-10 14:03:53 +00:00
|
|
|
}:
|
2011-12-05 01:32:25 +00:00
|
|
|
|
2023-12-22 14:54:27 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libmpdclient";
|
2023-12-22 14:58:20 +00:00
|
|
|
version = "2.22";
|
2013-09-23 13:41:04 +00:00
|
|
|
|
2017-06-09 04:54:29 +00:00
|
|
|
src = fetchFromGitHub {
|
2023-12-22 14:54:27 +00:00
|
|
|
owner = "MusicPlayerDaemon";
|
|
|
|
repo = "libmpdclient";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2023-12-22 14:58:20 +00:00
|
|
|
hash = "sha256-KF8IR9YV6b9ro+L9m6nHs1IggakEZddfcBKm/oKCVZY=";
|
2011-12-05 01:32:25 +00:00
|
|
|
};
|
|
|
|
|
2023-12-22 14:54:27 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
fixDarwinDylibNames
|
|
|
|
];
|
2013-09-23 13:41:04 +00:00
|
|
|
|
2023-12-22 14:54:27 +00:00
|
|
|
meta = {
|
2011-12-05 01:32:25 +00:00
|
|
|
description = "Client library for MPD (music player daemon)";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.musicpd.org/libs/libmpdclient/";
|
2023-12-22 14:54:27 +00:00
|
|
|
changelog = "https://raw.githubusercontent.com/MusicPlayerDaemon/libmpdclient/${finalAttrs.src.rev}/NEWS";
|
|
|
|
license = with lib.licenses; [ bsd2 ];
|
2024-02-09 11:39:43 +00:00
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
2023-12-22 14:54:27 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2011-12-05 01:32:25 +00:00
|
|
|
};
|
2023-12-22 14:54:27 +00:00
|
|
|
})
|