diff options
Diffstat (limited to 'nixpkgs/pkgs/data/fonts/lmodern/lmmath.nix')
-rw-r--r-- | nixpkgs/pkgs/data/fonts/lmodern/lmmath.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/fonts/lmodern/lmmath.nix b/nixpkgs/pkgs/data/fonts/lmodern/lmmath.nix new file mode 100644 index 000000000000..c6e0788eed38 --- /dev/null +++ b/nixpkgs/pkgs/data/fonts/lmodern/lmmath.nix @@ -0,0 +1,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; + }; +} + |