blob: a93a11bf85c18ff1cf2c34450345da995b75c9d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{
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/
chmod o+w $out/bin
wrapProgram $out/bin/mpv \
--set JACK_PROMISCUOUS_SERVER 1 \
--run "umask 0"
'';
};
};
}
|