Files
nixpkgs/pkgs/by-name/mp/mpdscribble/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
fetchpatch,
pkg-config,
meson,
ninja,
boost,
curl,
libgcrypt,
libmpdclient,
systemd,
}:
stdenv.mkDerivation rec {
pname = "mpdscribble";
version = "0.24";
src = fetchurl {
url = "https://www.musicpd.org/download/mpdscribble/${version}/mpdscribble-${version}.tar.xz";
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=";
})
];
postPatch = ''
sed '1i#include <ctime>' -i src/Log.cxx # gcc12
'';
nativeBuildInputs = [
pkg-config
meson
ninja
];
buildInputs = [
libmpdclient
curl
boost
libgcrypt
]
++ lib.optional stdenv.hostPlatform.isLinux systemd;
meta = with lib; {
description = "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.unix;
mainProgram = "mpdscribble";
};
}