mini-calc: 3.3.3 -> 3.3.5 (#372274)
[NixPkgs.git] / pkgs / by-name / li / libmpd / package.nix
blobc186379cde4ef4a1ea8c0c85e915b0749415f516
2   lib,
3   stdenv,
4   fetchurl,
5   pkg-config,
6   doxygen,
7   glib,
8 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "libmpd";
12   version = "11.8.17";
13   outputs = [
14     "out"
15     "dev"
16     "devdoc"
17   ];
19   src = fetchurl {
20     url = "https://www.musicpd.org/download/libmpd/${finalAttrs.version}/libmpd-${finalAttrs.version}.tar.gz";
21     hash = "sha256-/iAyaw0QZB9xxGc/rmN7+SIqluFxL3HxcPyi/DS/eoM=";
22   };
24   nativeBuildInputs = [
25     pkg-config
26     doxygen
27   ];
28   buildInputs = [
29     glib
30   ];
32   postInstall = ''
33     make doc
34     mkdir -p $devdoc/share/devhelp/libmpd
35     cp -r doc/html $devdoc/share/devhelp/libmpd/doxygen
36   '';
38   # Fix GCC 14 build
39   # https://hydra.nixos.org/build/281958201/nixlog/3
40   env.NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion";
42   meta = with lib; {
43     description = "Higher level access to MPD functions";
44     homepage = "https://www.musicpd.org/download/libmpd/";
45     changelog = "https://www.musicpd.org/download/libmpd/${finalAttrs.version}/README";
46     license = licenses.gpl2Only;
47     maintainers = with maintainers; [ doronbehar ];
48     platforms = platforms.all;
49     # Getting DARWIN_NULL related errors
50     broken = stdenv.hostPlatform.isDarwin;
51   };