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";