Merge pull request #82821 from veprbl/pr/lmmath_cleanup

cleanup duplicate Latin Modern fonts
This commit is contained in:
Dmitry Kalinkin
2020-03-18 23:55:18 -04:00
committed by GitHub
5 changed files with 9 additions and 45 deletions
@@ -3,14 +3,14 @@
let
version = "1.959";
in fetchzip rec {
name = "latinmodern-math-${version}";
name = "lmmath-${version}";
url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip";
postFetch = ''
mkdir -p $out/share/fonts/opentype/
mkdir -p $out/share/doc/${name}/
unzip -f $downloadedFile otf/*.otf -d $out/share/fonts/opentype/
unzip -f $downloadedFile doc/*.txt -d $out/share/doc/${name}/
mkdir -p $out/share/doc/latinmodern-math-${version}/
unzip -j $downloadedFile "*/otf/*.otf" -d $out/share/fonts/opentype/
unzip -j $downloadedFile "*/doc/*.txt" -d $out/share/doc/latinmodern-math-${version}/
'';
sha256 = "05k145bxgxjh7i9gx1ahigxfpc2v2vwzsy2mc41jvvg51kjr8fnn";
-26
View File
@@ -1,26 +0,0 @@
{ 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";
};
}