forked from mirrors/nixpkgs
b0ac6a009b
Make sure mpris.so is stripped. mpv-with-scripts: use a standard location for scripts in $out. mpvScripts.convert: install to the new location of mpv scripts. Replaced gobject-introspection dependency with glib.
15 lines
348 B
Nix
15 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}"
|
|
'';
|
|
}
|