about summary refs log tree commit diff
path: root/pkgs/servers/mpd/clientlib.nix
blob: 5c72ac97bc0ddcb9763947b79ba7098b1400095a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub, autoreconfHook, doxygen }:

stdenv.mkDerivation rec {
  version = "${passthru.majorVersion}.${passthru.minorVersion}";
  name = "libmpdclient-${version}";

  src = fetchFromGitHub {
    owner  = "MusicPlayerDaemon";
    repo   = "libmpdclient";
    rev    = "v${version}";
    sha256 = "06rv2j8rw9v9l4nwpvbh28nad8bbg368hzd8s58znbr5pgb8dihd";
  };

  nativeBuildInputs = [ autoreconfHook doxygen ];

  enableParallelBuilding = true;

  passthru = {
    majorVersion = "2";
    minorVersion = "11";
  };

  meta = with stdenv.lib; {
    description = "Client library for MPD (music player daemon)";
    homepage = http://www.musicpd.org/libs/libmpdclient/;
    license = licenses.gpl2;
    platforms = platforms.unix;
    maintainers = with maintainers; [ mornfall ehmry ];
  };
}