1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

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
commit 9a7f11e361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 45 deletions

View file

@ -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";

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";
};
}

View file

@ -1,16 +1,7 @@
{ stdenv, fetchzip, fetchFromGitHub, ruby, dune, ocamlPackages
, ipaexfont, junicode
, ipaexfont, junicode, lmodern, lmmath
}:
let
lm = fetchzip {
url = "http://www.gust.org.pl/projects/e-foundry/latin-modern/download/lm2.004otf.zip";
sha256 = "1mc88fbhfd2wki2vr700pgv96smya6d1z783xs3mfy138yb6ga2p";
stripRoot = false;
};
lm-math = fetchzip {
url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip";
sha256 = "15l3lxjciyjmbh0q6jjvzz16ibk4ij79in9fs47qhrfr2wrddpvs";
};
camlpdf = ocamlPackages.camlpdf.overrideAttrs (o: {
src = fetchFromGitHub {
owner = "gfngfn";
@ -63,8 +54,8 @@ in
installPhase = ''
cp -r ${ipaexfont}/share/fonts/opentype/* lib-satysfi/dist/fonts/
cp -r ${junicode}/share/fonts/junicode-ttf/* lib-satysfi/dist/fonts/
cp -r ${lm}/* lib-satysfi/dist/fonts/
cp -r ${lm-math}/otf/latinmodern-math.otf lib-satysfi/dist/fonts/
cp -r ${lmodern}/share/fonts/opentype/public/lm/* lib-satysfi/dist/fonts/
cp -r ${lmmath}/share/fonts/opentype/latinmodern-math.otf lib-satysfi/dist/fonts/
make install PREFIX=$out LIBDIR=$out/share/satysfi
mkdir -p $out/share/satysfi/
cp -r lib-satysfi/dist/ $out/share/satysfi/

View file

@ -212,6 +212,7 @@ mapAliases ({
krename-qt5 = krename; # added 2017-02-18
keymon = throw "keymon has been removed from nixpkgs, as it's abandoned and archived."; # 2019-12-10
kvm = qemu_kvm; # added 2018-04-25
latinmodern-math = lmmath;
letsencrypt = certbot; # added 2016-05-16
libaudit = audit; # added 2018-04-25
libcanberra_gtk2 = libcanberra-gtk2; # added 2018-02-25

View file

@ -17768,8 +17768,6 @@ in
kochi-substitute-naga10 = callPackage ../data/fonts/kochi-substitute-naga10 {};
latinmodern-math = callPackage ../data/fonts/lm-math {};
lato = callPackage ../data/fonts/lato {};
league-of-moveable-type = callPackage ../data/fonts/league-of-moveable-type {};
@ -17804,7 +17802,7 @@ in
libre-franklin = callPackage ../data/fonts/libre-franklin { };
lmmath = callPackage ../data/fonts/lmodern/lmmath.nix {};
lmmath = callPackage ../data/fonts/lmmath {};
lmodern = callPackage ../data/fonts/lmodern { };