cm_unicode: use installFonts (#496050)

This commit is contained in:
7c6f434c
2026-03-04 07:09:09 +00:00
committed by GitHub
+8 -6
View File
@@ -2,22 +2,24 @@
lib,
stdenvNoCC,
fetchurl,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "cm-unicode";
version = "0.7.0";
src = fetchurl {
url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${pname}-${version}-otf.tar.xz";
url = "mirror://sourceforge/cm-unicode/cm-unicode/${finalAttrs.version}/cm-unicode-${finalAttrs.version}-otf.tar.xz";
hash = "sha256-VIp+vk1IYbEHW15wMrfGVOPqg1zBZDpgFx+jlypOHCg=";
};
installPhase = ''
nativeBuildInputs = [ installFonts ];
InstallPhase = ''
runHook preInstall
install -m444 -Dt $out/share/fonts/opentype *.otf
install -m444 -Dt $out/share/doc/${pname}-${version} README FontLog.txt
install -m444 -Dt $out/share/doc/$cm-unicode-${finalAttrs.version} README FontLog.txt
runHook postInstall
'';
@@ -32,4 +34,4 @@ stdenvNoCC.mkDerivation rec {
license = lib.licenses.ofl;
platforms = lib.platforms.all;
};
}
})