From 00f439d328c8e04b714afe20ef049e83391e4b37 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 9 Jul 2016 18:00:25 +0200 Subject: better wrapping of mpd --- bragi.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/bragi.nix b/bragi.nix index 04819302..fb26e14c 100644 --- a/bragi.nix +++ b/bragi.nix @@ -59,11 +59,17 @@ in rec { ''; }; - mpd = pkgs.callPackage ./customized/mpd.nix { - gmeSupport = false; - game-music-emu = null; - pulseaudio = pkgs.pulseaudioLight; + mpd = pkgs.symlinkJoin { + name = "mpd"; + paths = [ (pkgs.mpd.override { gmeSupport = false; game-music-emu = null; pulseaudio = pkgs.pulseaudioLight; }) ]; + buildInputs = [ pkgs.makeWrapper ]; + postBuild = '' + wrapProgram $out/bin/mpd \ + --set JACK_PROMISCUOUS_SERVER 1 \ + --run "umask 0" + ''; }; + mpv = pkgs.stdenv.lib.overrideDerivation pkgs.mpv (oldAttrs: { buildInputs = oldAttrs.buildInputs ++ [pkgs.makeWrapper]; postInstall = '' -- cgit v1.2.3