mpv: use wrapper for scripts and add mpris script

This commit is contained in:
Johannes Frankenau
2018-07-19 09:50:32 +02:00
committed by Profpatsch
parent 1bec0a9ed4
commit 402ee4e9ea
4 changed files with 45 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
{ stdenv, symlinkJoin, makeWrapper, mpv, scripts ? [] }:
symlinkJoin {
name = "mpv-with-scripts-${mpv.version}";
paths = [ mpv ];
buildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/mpv \
--add-flags "${stdenv.lib.concatMapStringsSep " " (x: "--script=" + x) scripts}"
'';
}