mpvScripts.mpv-osc-modern: use installFonts

This commit is contained in:
Guanran Wang
2026-03-02 22:41:00 +08:00
parent 5fa0ff192a
commit 7448ad53b8
@@ -2,6 +2,7 @@
lib,
buildLua,
fetchFromGitHub,
installFonts,
makeFontsConf,
nix-update-script,
}:
@@ -17,10 +18,8 @@ buildLua (finalAttrs: {
hash = "sha256-RMUy8UpSRSCEPAbnGLpJ2NjDsDdkjq8cNsdGwsQ5ANU=";
};
postInstall = ''
mkdir -p $out/share/fonts
cp -r *.ttf $out/share/fonts
'';
nativeBuildInputs = [ installFonts ];
passthru.extraWrapperArgs = [
"--set"
"FONTCONFIG_FILE"