mpd: opus and proxy support

This commit is contained in:
Emery Hemingway 2015-04-17 11:37:35 -04:00
parent 7ae97432b8
commit 64b9688ee4
2 changed files with 14 additions and 5 deletions

View File

@ -21,6 +21,8 @@
, jackSupport ? true, jack2
, gmeSupport ? true, game-music-emu
, icuSupport ? true, icu
, clientSupport ? false, mpd_clientlib
, opusSupport ? true, libopus
}:
let
@ -32,8 +34,8 @@ let
in stdenv.mkDerivation rec {
name = "mpd-${major}.${minor}";
src = fetchurl {
url = "http://www.musicpd.org/download/mpd/${major}/${name}.tar.gz";
sha256 = "1j3cv8b76bfj3ddpd29v3apb5025i87y5h5b4lrs2g5vqsgpvb6y";
url = "http://www.musicpd.org/download/mpd/${major}/${name}.tar.xz";
sha256 = "0vzj365s4j0pw5w37lfhx3dmpkdp85driravsvx8rlrw0lii91a7";
};
buildInputs = [ pkgconfig glib boost ]
@ -61,7 +63,9 @@ in stdenv.mkDerivation rec {
++ opt pulseaudioSupport pulseaudio
++ opt jackSupport jack2
++ opt gmeSupport game-music-emu
++ opt icuSupport icu;
++ opt icuSupport icu
++ opt clientSupport mpd_clientlib
++ opt opusSupport libopus;
configureFlags =
[ (mkFlag (!stdenv.isDarwin && alsaSupport) "alsa")
@ -88,6 +92,8 @@ in stdenv.mkDerivation rec {
(mkFlag stdenv.isDarwin "osx")
(mkFlag icuSupport "icu")
(mkFlag gmeSupport "gme")
(mkFlag clientSupport "libmpdclient")
(mkFlag opusSupport "opus")
"--enable-debug"
]
++ opt stdenv.isLinux
@ -101,7 +107,7 @@ in stdenv.mkDerivation rec {
description = "A flexible, powerful daemon for playing music";
homepage = http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki;
license = licenses.gpl2;
maintainers = with maintainers; [ astsmtl fuuzetsu ];
maintainers = with maintainers; [ astsmtl fuuzetsu emery ];
platforms = platforms.unix;
longDescription = ''

View File

@ -8371,7 +8371,10 @@ let
mpd = callPackage ../servers/mpd {
aacSupport = config.mpd.aacSupport or true;
clientSupport = config.mpd.clientSupport or false;
ffmpegSupport = config.mpd.ffmpegSupport or true;
opusSupport = config.mpd.opusSupport or true;
};
mpd_clientlib = callPackage ../servers/mpd/clientlib.nix { };
@ -10266,7 +10269,7 @@ let
};
dbvisualizer = callPackage ../applications/misc/dbvisualizer {};
dd-agent = callPackage ../tools/networking/dd-agent { inherit (pythonPackages) tornado; };
deadbeef = callPackage ../applications/audio/deadbeef {