summaryrefslogtreecommitdiff
path: root/users/gkleen@bragi.nix
blob: b35b77918ae75d31871547447dfe0a6d0c004908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  packageOverrides = pkgs: {
    mpv = let mpv = pkgs.mpv.override { youtubeSupport = true; theoraSupport = true; }; in pkgs.stdenv.mkDerivation {
      name = "mpv-wrapper";
      src = mpv;
      unpackPhase = "cat";
      buildInputs = [ pkgs.makeWrapper pkgs.rsync ];
      installPhase = ''
        mkdir -p $out
        rsync -a $src/ $out/
        wrapProgram $out/bin/mpv \
          --set JACK_PROMISCUOUS_SERVER 1 \
          --run "umask 0"
      '';
    };
  };
}