3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/lmodern/lmmath.nix

28 lines
620 B
Nix
Raw Normal View History

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