mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
Nix
{ lib, stdenvNoCC, fetchzip }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "lmmath";
|
|
version = "1.959";
|
|
|
|
src = fetchzip {
|
|
url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip";
|
|
hash = "sha256-et/WMhfZZYgP0S7ZmI6MZK5owv9bSoMBXFX6yGSng5Y=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/fonts/opentype/
|
|
mkdir -p $out/share/doc/latinmodern-math-${version}/
|
|
cp otf/*.otf $out/share/fonts/opentype/
|
|
cp doc/*.txt $out/share/doc/latinmodern-math-${version}/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Latin Modern Math (LM Math) font completes the modernization of the Computer Modern family of typefaces designed and programmed by Donald E. Knuth";
|
|
homepage = "http://www.gust.org.pl/projects/e-foundry/lm-math";
|
|
# "The Latin Modern Math font is licensed under the GUST Font License (GFL),
|
|
# which is a free license, legally equivalent to the LaTeX Project Public
|
|
# License (LPPL), version 1.3c or later." - GUST website
|
|
license = licenses.lppl13c;
|
|
maintainers = with maintainers; [ siddharthist ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|