From 87e9b49443c28fbe62e3b273369a330b7aa193e5 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Sun, 1 Jun 2014 17:07:46 +0200 Subject: [PATCH 1/2] mpd: Support for PulseAudio --- pkgs/servers/mpd/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/mpd/default.nix b/pkgs/servers/mpd/default.nix index 792aa49f447f..9a70a91d73fc 100644 --- a/pkgs/servers/mpd/default.nix +++ b/pkgs/servers/mpd/default.nix @@ -18,7 +18,9 @@ , samplerateSupport ? true, libsamplerate , mmsSupport ? true, libmms , mpg123Support ? true, mpg123 -, aacSupport ? true, faad2 }: +, aacSupport ? true, faad2 +, pulseaudioSupport ? true, pulseaudio +}: let @@ -56,7 +58,8 @@ in stdenv.mkDerivation rec { ++ opt mmsSupport libmms ++ opt mpg123Support mpg123 ++ opt aacSupport faad2 - ++ opt zipSupport zziplib; + ++ opt zipSupport zziplib + ++ opt zipSupport pulseaudio; configureFlags = [ (mkFlag (!stdenv.isDarwin && alsaSupport) "alsa") @@ -80,6 +83,7 @@ in stdenv.mkDerivation rec { (mkFlag mmsSupport "mms") (mkFlag mpg123Support "mpg123") (mkFlag aacSupport "aac") + (mkFlag pulseaudioSupport "pulse") (mkFlag stdenv.isDarwin "osx") "--enable-debugging" ] ++ opt stdenv.isLinux From fd81f49655b9aa181a07668add826052e17adfba Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Sun, 1 Jun 2014 17:08:43 +0200 Subject: [PATCH 2/2] mpd: update to 0.18.11 --- pkgs/servers/mpd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/mpd/default.nix b/pkgs/servers/mpd/default.nix index 9a70a91d73fc..36e8f0222061 100644 --- a/pkgs/servers/mpd/default.nix +++ b/pkgs/servers/mpd/default.nix @@ -29,10 +29,10 @@ let mkFlag = c: f: if c then "--enable-${f}" else "--disable-${f}"; in stdenv.mkDerivation rec { - name = "mpd-0.18.9"; + name = "mpd-0.18.11"; src = fetchurl { url = "http://www.musicpd.org/download/mpd/stable/${name}.tar.gz"; - sha256 = "0mgfyrhjlalwngx9j3xxfpfwygh9a31k1ni1isi898bb2x8zsl08"; + sha256 = "1j3jdwmxfnn4z1vjry2g54vcbrdrgi41nv3bf2i26xkgy5708icw"; }; buildInputs = [ pkgconfig glib ]