Unverified Commit 7448ad53 authored by Guanran Wang's avatar Guanran Wang
Browse files

mpvScripts.mpv-osc-modern: use installFonts

parent 5fa0ff19
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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"