mpv: use wrapper for scripts and add mpris script
This commit is contained in:
committed by
Profpatsch
parent
1bec0a9ed4
commit
402ee4e9ea
@@ -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 ''
|
||||
|
||||
Reference in New Issue
Block a user