rhodium-libre: use installFonts hook
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user