66604c92c1
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
14 lines
348 B
Nix
14 lines
348 B
Nix
{ 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}/share/mpv/scripts/${x.scriptName}") scripts}"
|
|
'';
|
|
}
|