lol
1{ stdenv, fetchurl, unzip }:
2
3stdenv.mkDerivation {
4 name = "lmmath-0.903";
5
6 src = fetchurl {
7 url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/lmmath0903otf";
8 sha256 = "ee96cb14f5c746d6c6b9ecfbdf97dafc2f535be3dd277e15e8ea6fb594995d64";
9 name = "lmmath-0.903.zip";
10 };
11
12 buildInputs = [unzip];
13
14 sourceRoot = ".";
15
16 installPhase = ''
17 mkdir -p $out/texmf-dist/fonts/opentype
18 mkdir -p $out/share/fonts/opentype
19
20 cp *.{OTF,otf} $out/texmf-dist/fonts/opentype/lmmath-regular.otf
21 cp *.{OTF,otf} $out/share/fonts/opentype/lmmath-regular.otf
22
23 ln -s $out/texmf* $out/share/
24 '';
25
26 meta = {
27 description = "Latin Modern font";
28 platforms = stdenv.lib.platforms.unix;
29 };
30}
31