mpv: use wrapper for scripts and add mpris script
This commit is contained in:
committed by
Profpatsch
parent
1bec0a9ed4
commit
402ee4e9ea
@@ -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}"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user