Files
nixpkgs/pkgs/by-name/cm/cm_unicode/package.nix
Stefan Frijters 63f7cee6fa cm-unicode: fix install phase
With "InstallPhase" capitalized it is not actually run.

"cm" should be a literal, not a variable.
2026-03-05 10:41:34 +01:00

38 lines
826 B
Nix

{
lib,
stdenvNoCC,
fetchurl,
installFonts,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "cm-unicode";
version = "0.7.0";
src = fetchurl {
url = "mirror://sourceforge/cm-unicode/cm-unicode/${finalAttrs.version}/cm-unicode-${finalAttrs.version}-otf.tar.xz";
hash = "sha256-VIp+vk1IYbEHW15wMrfGVOPqg1zBZDpgFx+jlypOHCg=";
};
nativeBuildInputs = [ installFonts ];
installPhase = ''
runHook preInstall
install -m444 -Dt $out/share/doc/cm-unicode-${finalAttrs.version} README FontLog.txt
runHook postInstall
'';
meta = {
homepage = "https://cm-unicode.sourceforge.io/";
description = "Computer Modern Unicode fonts";
maintainers = with lib.maintainers; [
raskin
rycee
];
license = lib.licenses.ofl;
platforms = lib.platforms.all;
};
})