mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
Merge pull request #55 from 7c6f434c/texlive-2012
LMMath: add Latin Modern Math font
This commit is contained in:
commit
0b9284c8da
30
pkgs/data/fonts/lmodern/lmmath.nix
Normal file
30
pkgs/data/fonts/lmodern/lmmath.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "lmmath-0.903";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/lmmath0903otf";
|
||||
sha256 = "ee96cb14f5c746d6c6b9ecfbdf97dafc2f535be3dd277e15e8ea6fb594995d64";
|
||||
name = "lmmath-0.903.zip";
|
||||
};
|
||||
|
||||
buildInputs = [unzip];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/texmf/fonts/opentype
|
||||
mkdir -p $out/share/fonts/opentype
|
||||
|
||||
cp *.{OTF,otf} $out/texmf/fonts/opentype/lmmath-regular.otf
|
||||
cp *.{OTF,otf} $out/share/fonts/opentype/lmmath-regular.otf
|
||||
|
||||
ln -s $out/texmf* $out/share/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Latin Modern font";
|
||||
};
|
||||
}
|
||||
|
@ -6243,6 +6243,8 @@ let
|
||||
inherit fontforge;
|
||||
};
|
||||
|
||||
lmmath = callPackage ../data/fonts/lmodern/lmmath.nix {};
|
||||
|
||||
lmodern = callPackage ../data/fonts/lmodern { };
|
||||
|
||||
manpages = callPackage ../data/documentation/man-pages { };
|
||||
|
Loading…
Reference in New Issue
Block a user