Merge pull request #205130 from deejayem/mpdscribble-support-more-platforms

This commit is contained in:
Sandro 2022-12-12 10:54:29 +01:00 committed by GitHub
commit e567f969a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
, pkg-config
, meson
, ninja
@ -20,20 +21,26 @@ stdenv.mkDerivation rec {
sha256 = "sha256-9rTLp0izuH5wUnC0kjyOI+lMLgD+3VC+sUaNvi+yqOc=";
};
# Fix build issue on darwin; to be removed after the next release
patches = [(fetchpatch {
name = "remove-empty-static-lib.patch";
url = "https://github.com/MusicPlayerDaemon/mpdscribble/commit/0dbcea25c81f3fdc608f71ef71a9784679fee17f.patch";
sha256 = "sha256-3wLfQvbwx+OFrCl5vMV7Zps4e4iEYFhqPiVCo5hDqgw=";
})];
nativeBuildInputs = [ pkg-config meson ninja ];
buildInputs = [
libmpdclient
curl
boost
libgcrypt
systemd
];
] ++ lib.optional stdenv.isLinux systemd;
meta = with lib; {
description = "A MPD client which submits info about tracks being played to a scrobbler";
homepage = "https://www.musicpd.org/clients/mpdscribble/";
license = licenses.gpl2Plus;
maintainers = [ maintainers.sohalt ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}