diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-08 00:06:39 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-08 00:06:39 +0200 |
commit | bc1aa6c3fe3647337a83f93b60f1374eecd67217 (patch) | |
tree | 95e011c688f0b61c638c26f5a90ef59bf20ef138 /users/gkleen@bragi.nix | |
parent | 12399cb846a7b97ba6d8785d90daf033fd0b97ac (diff) | |
download | nixos-bc1aa6c3fe3647337a83f93b60f1374eecd67217.tar nixos-bc1aa6c3fe3647337a83f93b60f1374eecd67217.tar.gz nixos-bc1aa6c3fe3647337a83f93b60f1374eecd67217.tar.bz2 nixos-bc1aa6c3fe3647337a83f93b60f1374eecd67217.tar.xz nixos-bc1aa6c3fe3647337a83f93b60f1374eecd67217.zip |
Patched mpv for use with jack
Diffstat (limited to 'users/gkleen@bragi.nix')
-rw-r--r-- | users/gkleen@bragi.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/users/gkleen@bragi.nix b/users/gkleen@bragi.nix new file mode 100644 index 00000000..29d8b8a1 --- /dev/null +++ b/users/gkleen@bragi.nix | |||
@@ -0,0 +1,17 @@ | |||
1 | { | ||
2 | packageOverrides = pkgs: { | ||
3 | mpv = let mpv = pkgs.mpv.override { youtubeSupport = true; theoraSupport = true; } in pkgs.stdenv.mkDerivation { | ||
4 | name = "mpv-wrapper"; | ||
5 | src = mpv; | ||
6 | unpackPhase = "cat"; | ||
7 | buildInputs = [ pkgs.makeWrapper ]; | ||
8 | installPhase = '' | ||
9 | mkdir -p $out/bin | ||
10 | cp $src/bin/mpv $out/bin | ||
11 | wrapProgram $out/bin/mpv \ | ||
12 | --set JACK_PROMISCUOUS_SERVER 1 \ | ||
13 | --run "umask 0" | ||
14 | ''; | ||
15 | }; | ||
16 | }; | ||
17 | } | ||