From 92dc181ae124197f6d7a6c1e54ba02269d8b4e88 Mon Sep 17 00:00:00 2001 From: Sandesh Date: Wed, 3 Jun 2026 09:41:23 +0530 Subject: [PATCH] rhodium-libre: use installFonts hook --- pkgs/by-name/rh/rhodium-libre/package.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/rh/rhodium-libre/package.nix b/pkgs/by-name/rh/rhodium-libre/package.nix index 20e27c0945bc..f47214b2b7a0 100644 --- a/pkgs/by-name/rh/rhodium-libre/package.nix +++ b/pkgs/by-name/rh/rhodium-libre/package.nix @@ -2,6 +2,7 @@ lib, stdenvNoCC, fetchFromGitHub, + installFonts, }: stdenvNoCC.mkDerivation rec { @@ -15,14 +16,7 @@ stdenvNoCC.mkDerivation rec { hash = "sha256-YCQvUdjEAj4G71WCRCM0+NwiqRqwt1Ggeg9jb/oWEsY="; }; - installPhase = '' - runHook preInstall - - install -Dm444 -t $out/share/fonts/opentype/ RhodiumLibre-Regular.otf - install -Dm444 -t $out/share/fonts/truetype/ RhodiumLibre-Regular.ttf - - runHook postInstall - ''; + nativeBuildInputs = [ installFonts ]; meta = { description = "F/OSS/Libre font for Latin and Devanagari";