summaryrefslogtreecommitdiff
path: root/users/gkleen@bragi.nix
blob: e6de4227b9225487ba9aced55a1f1ca9320e76c1 (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 ];
      installPhase = ''
        mkdir -p $out/bin
        cp $src/bin/mpv $out/bin
        wrapProgram $out/bin/mpv \
          --set JACK_PROMISCUOUS_SERVER 1 \
          --run "umask 0"
      '';
    };
  };
}