about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/lmodern/lmmath.nix
blob: c6e0788eed381ada49bcf5f0c7dcd799c917c687 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchzip }:

fetchzip {
  name = "lmmath-0.903";

  url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/lmmath0903otf";

  postFetch = ''
    unzip $downloadedFile

    mkdir -p $out/texmf-dist/fonts/opentype
    mkdir -p $out/share/fonts/opentype

    cp *.{OTF,otf} $out/texmf-dist/fonts/opentype/lmmath-regular.otf
    cp *.{OTF,otf} $out/share/fonts/opentype/lmmath-regular.otf

    ln -s -r $out/texmf* $out/share/
  '';

  sha256 = "19821d4vbd6z20jzsw24zh0hhwayglhrfw8larg2w6alhdqi7rln";

  meta = {
    description = "Latin Modern font";
    platforms = stdenv.lib.platforms.unix;
  };
}