Merge pull request #276068 from atorres1985-contrib/libmpdclient

Libmpdclient updates
This commit is contained in:
Peder Bergebakken Sundt 2024-01-19 22:06:46 +01:00 committed by GitHub
commit a1a95d0815
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 35 additions and 32 deletions

View File

@ -0,0 +1,35 @@
{ fetchFromGitHub
, fixDarwinDylibNames
, lib
, meson
, ninja
, stdenv
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libmpdclient";
version = "2.22";
src = fetchFromGitHub {
owner = "MusicPlayerDaemon";
repo = "libmpdclient";
rev = "v${finalAttrs.version}";
hash = "sha256-KF8IR9YV6b9ro+L9m6nHs1IggakEZddfcBKm/oKCVZY=";
};
nativeBuildInputs = [
meson
ninja
] ++ lib.optionals stdenv.isDarwin [
fixDarwinDylibNames
];
meta = {
description = "Client library for MPD (music player daemon)";
homepage = "https://www.musicpd.org/libs/libmpdclient/";
changelog = "https://raw.githubusercontent.com/MusicPlayerDaemon/libmpdclient/${finalAttrs.src.rev}/NEWS";
license = with lib.licenses; [ bsd2 ];
maintainers = with lib.maintainers; [ AndersonTorres ehmry ];
platforms = lib.platforms.unix;
};
})

View File

@ -1,30 +0,0 @@
{ 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;
};
}

View File

@ -26649,8 +26649,6 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) AudioToolbox AudioUnit;
}) mpd mpd-small mpdWithFeatures;
libmpdclient = callPackage ../servers/mpd/libmpdclient.nix { };
mpdscribble = callPackage ../tools/misc/mpdscribble { };
mtprotoproxy = python3.pkgs.callPackage ../servers/mtprotoproxy { };