mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
With "InstallPhase" capitalized it is not actually run. "cm" should be a literal, not a variable.
38 lines
826 B
Nix
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;
|
|
};
|
|
})
|