From 9b20a9b67ca1bf4bfda04f018c13f30e20f8bd75 Mon Sep 17 00:00:00 2001 From: pancaek <20342389+pancaek@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:10:22 -0800 Subject: [PATCH] fira-math: use installFonts --- pkgs/by-name/fi/fira-math/package.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/fi/fira-math/package.nix b/pkgs/by-name/fi/fira-math/package.nix index 7e74d3fd0ca7..984c90e2033b 100644 --- a/pkgs/by-name/fi/fira-math/package.nix +++ b/pkgs/by-name/fi/fira-math/package.nix @@ -2,6 +2,7 @@ lib, fetchFromGitHub, python3, + installFonts, stdenvNoCC, }: @@ -21,6 +22,7 @@ stdenvNoCC.mkDerivation { }; nativeBuildInputs = [ + installFonts (python3.withPackages ( ps: with ps; [ fontmake @@ -39,14 +41,6 @@ stdenvNoCC.mkDerivation { runHook postBuild ''; - installPhase = '' - runHook preInstall - - install -D "build/"*.otf -t "$out/share/fonts/opentype/" - - runHook postInstall - ''; - meta = { description = "Math font with Unicode math support based on FiraSans and FiraGO"; homepage = "https://github.com/firamath/firamath";