summaryrefslogtreecommitdiff
path: root/customized
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-06-07 16:52:39 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-06-07 16:52:39 +0200
commit50b9428bb1b2a774e1b57908fc7dd7ec96dddc8a (patch)
treeb172015bb4f3c0d993ffa0f4ef27cb9abdd1f58b /customized
parent9c2a7dbf3748ab494db3398a4f21ec386bb9074c (diff)
downloadnixos-50b9428bb1b2a774e1b57908fc7dd7ec96dddc8a.tar
nixos-50b9428bb1b2a774e1b57908fc7dd7ec96dddc8a.tar.gz
nixos-50b9428bb1b2a774e1b57908fc7dd7ec96dddc8a.tar.bz2
nixos-50b9428bb1b2a774e1b57908fc7dd7ec96dddc8a.tar.xz
nixos-50b9428bb1b2a774e1b57908fc7dd7ec96dddc8a.zip
mpd wrapper to set JACK_PROMISCOUS_SERVER
Diffstat (limited to 'customized')
-rw-r--r--customized/mpd.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/customized/mpd.nix b/customized/mpd.nix
index 36b78388..8f981e61 100644
--- a/customized/mpd.nix
+++ b/customized/mpd.nix
@@ -23,6 +23,7 @@
23, icuSupport ? true, icu 23, icuSupport ? true, icu
24, clientSupport ? false, mpd_clientlib 24, clientSupport ? false, mpd_clientlib
25, opusSupport ? true, libopus 25, opusSupport ? true, libopus
26, makeWrapper
26}: 27}:
27 28
28let 29let
@@ -38,7 +39,7 @@ in stdenv.mkDerivation rec {
38 sha256 = "0vzj365s4j0pw5w37lfhx3dmpkdp85driravsvx8rlrw0lii91a7"; 39 sha256 = "0vzj365s4j0pw5w37lfhx3dmpkdp85driravsvx8rlrw0lii91a7";
39 }; 40 };
40 41
41 buildInputs = [ pkgconfig glib boost ] 42 buildInputs = [ pkgconfig glib boost makeWrapper ]
42 ++ opt stdenv.isLinux systemd 43 ++ opt stdenv.isLinux systemd
43 ++ opt (stdenv.isLinux && alsaSupport) alsaLib 44 ++ opt (stdenv.isLinux && alsaSupport) alsaLib
44 ++ opt flacSupport flac 45 ++ opt flacSupport flac
@@ -99,6 +100,11 @@ in stdenv.mkDerivation rec {
99 ++ opt stdenv.isLinux 100 ++ opt stdenv.isLinux
100 "--with-systemdsystemunitdir=$(out)/etc/systemd/system"; 101 "--with-systemdsystemunitdir=$(out)/etc/systemd/system";
101 102
103 postInstall = ''
104 wrapProgram $out/bin/mpd \
105 --set JACK_PROMISCOUS_SERVER 1
106 '';
107
102 NIX_LDFLAGS = '' 108 NIX_LDFLAGS = ''
103 ${if shoutSupport then "-lshout" else ""} 109 ${if shoutSupport then "-lshout" else ""}
104 ''; 110 '';