summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-06-08 00:06:39 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-06-08 00:06:39 +0200
commitbc1aa6c3fe3647337a83f93b60f1374eecd67217 (patch)
tree95e011c688f0b61c638c26f5a90ef59bf20ef138
parent12399cb846a7b97ba6d8785d90daf033fd0b97ac (diff)
downloadnixos-bc1aa6c3fe3647337a83f93b60f1374eecd67217.tar
nixos-bc1aa6c3fe3647337a83f93b60f1374eecd67217.tar.gz
nixos-bc1aa6c3fe3647337a83f93b60f1374eecd67217.tar.bz2
nixos-bc1aa6c3fe3647337a83f93b60f1374eecd67217.tar.xz
nixos-bc1aa6c3fe3647337a83f93b60f1374eecd67217.zip
Patched mpv for use with jack
-rw-r--r--.gitignore1
-rw-r--r--users/gkleen@bragi.nix17
2 files changed, 18 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 40c71083..d184a07f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
1configuration.nix 1configuration.nix
2config.nix
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}