blob: 29d8b8a1d64b06a2119a3f3c53867a3f7c86863a (
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"
'';
};
};
}
|