8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
14 lines
314 B
Nix
14 lines
314 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) scripts}"
|
|
'';
|
|
}
|