mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
15 lines
314 B
Nix
15 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}"
|
||
|
'';
|
||
|
}
|