Files
nixpkgs/pkgs/by-name/li/libmpd/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
doxygen,
glib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libmpd";
version = "11.8.17";
outputs = [
"out"
"dev"
"devdoc"
];
src = fetchurl {
url = "https://www.musicpd.org/download/libmpd/${finalAttrs.version}/libmpd-${finalAttrs.version}.tar.gz";
hash = "sha256-/iAyaw0QZB9xxGc/rmN7+SIqluFxL3HxcPyi/DS/eoM=";
};
nativeBuildInputs = [
pkg-config
doxygen
];
buildInputs = [
glib
];
postInstall = ''
make doc
mkdir -p $devdoc/share/devhelp/libmpd
cp -r doc/html $devdoc/share/devhelp/libmpd/doxygen
'';
# Fix GCC 14 build
# https://hydra.nixos.org/build/281958201/nixlog/3
env.NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion";
meta = {
description = "Higher level access to MPD functions";
homepage = "https://www.musicpd.org/download/libmpd/";
changelog = "https://www.musicpd.org/download/libmpd/${finalAttrs.version}/README";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ doronbehar ];
platforms = lib.platforms.all;
# Getting DARWIN_NULL related errors
broken = stdenv.hostPlatform.isDarwin;
};
})