doulos-sil: use installFonts (#517548)

This commit is contained in:
Yohann Boniface
2026-05-15 23:36:38 +00:00
committed by GitHub
+8 -1
View File
@@ -2,21 +2,28 @@
lib,
stdenvNoCC,
fetchzip,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
pname = "doulos-sil";
version = "7.000";
outputs = [
"out"
"webfont"
];
src = fetchzip {
url = "https://software.sil.org/downloads/r/doulos/DoulosSIL-${version}.zip";
hash = "sha256-i2M7YVBiLWUZETAZEesHdyQypoO5fbWHqhpizqVLB5E=";
};
nativeBuildInputs = [ installFonts ];
installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/truetype
install -Dm644 OFL.txt OFL-FAQ.txt README.txt FONTLOG.txt -t $out/share/doc/${pname}-${version}
runHook postInstall