summaryrefslogtreecommitdiff
path: root/customized
diff options
context:
space:
mode:
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 '';