3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/video/mpv/wrapper.nix

15 lines
314 B
Nix
Raw Normal View History

{ 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}"
'';
}