mpv: use wrapper for scripts and add mpris script

This commit is contained in:
Johannes Frankenau
2018-07-19 09:50:32 +02:00
committed by Profpatsch
parent 1bec0a9ed4
commit 402ee4e9ea
4 changed files with 45 additions and 4 deletions
-4
View File
@@ -38,9 +38,6 @@
, vapoursynthSupport ? false, vapoursynth ? null
, archiveSupport ? false, libarchive ? null
, jackaudioSupport ? false, libjack2 ? null
# scripts you want to be loaded by default
, scripts ? []
}:
with stdenv.lib;
@@ -180,7 +177,6 @@ in stdenv.mkDerivation rec {
ln -s ${freefont_ttf}/share/fonts/truetype/FreeSans.ttf $out/share/mpv/subfont.ttf
# Ensure youtube-dl is available in $PATH for MPV
wrapProgram $out/bin/mpv \
--add-flags "--scripts=${concatStringsSep "," scripts}" \
--prefix LUA_PATH : "${luaPath}" \
--prefix LUA_CPATH : "${luaCPath}" \
'' + optionalString youtubeSupport ''