diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2012-07-19 09:07:57 +0400 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2012-07-19 09:07:57 +0400 |
commit | 7bb60c640da5fe0fad420ef83eb41521e10925aa (patch) | |
tree | f2b880beebd78288183578ab036aa049d85da94b /pkgs/data | |
parent | d077a98e77479659c27af926c3c6dc18dbcf0fe8 (diff) |
LMMath: add Latin Modern Math font
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/lmodern/lmmath.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/data/fonts/lmodern/lmmath.nix b/pkgs/data/fonts/lmodern/lmmath.nix new file mode 100644 index 0000000000000..651a84726af64 --- /dev/null +++ b/pkgs/data/fonts/lmodern/lmmath.nix @@ -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"; + }; +} + |