nixpkgs/pkgs/data/fonts/lmodern/lmmath.nix

27 lines
569 B
Nix
Raw Normal View History

{ fetchzip }:
2012-07-19 05:07:57 +00:00
2017-08-10 19:43:49 +00:00
fetchzip {
2012-07-19 05:07:57 +00:00
name = "lmmath-0.903";
2017-08-10 19:43:49 +00:00
url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/lmmath0903otf";
2012-07-19 05:07:57 +00:00
2017-08-10 19:43:49 +00:00
postFetch = ''
unzip $downloadedFile
2012-07-19 05:07:57 +00:00
mkdir -p $out/texmf-dist/fonts/opentype
2012-07-19 05:07:57 +00:00
mkdir -p $out/share/fonts/opentype
cp *.{OTF,otf} $out/texmf-dist/fonts/opentype/lmmath-regular.otf
2012-07-19 05:07:57 +00:00
cp *.{OTF,otf} $out/share/fonts/opentype/lmmath-regular.otf
2017-08-10 19:43:49 +00:00
ln -s -r $out/texmf* $out/share/
2012-07-19 05:07:57 +00:00
'';
2017-08-10 19:43:49 +00:00
sha256 = "19821d4vbd6z20jzsw24zh0hhwayglhrfw8larg2w6alhdqi7rln";
2012-07-19 05:07:57 +00:00
meta = {
description = "Latin Modern font";
};
}