Change:
A grep of : The latest version is 1.959 per I'd say that the texlive and fonts/lm-math versions can stay as they have different paths ( vs ), although ideally just the texlive version would stay, but the others are not helping anything at all.
cc for comments
– has meta, unpacks only the needed files – resides in the same directory with , tries to provide texmf So, perhaps, we should keep the implementation of under the name and make an alias. The satysfi needs to be fixed to use existing packages (also implements a duplicate of ).
Well, for texmf one would presumably use the TexLive package, as it has separated and outputs unlike the other packages. And it auto-updates along with the rest of TexLive. The only issue with using it as the sole package is that it's not a multiple output derivation so using it in the fonts list looks like rather than just . It shouldn't be that hard to set up TexLive to have attributes usable directly, by setting and so forth. Nix doesn't support multiple outputs for fixed-output derivations, so it'd be a bit of a hack.
The "packages" in are set up to be used with . They were not intended to be used in any other way.

Discussion:
<del> { lib, fetchzip }: let version = "1.959"; in fetchzip rec { name = "latinmodern-math-${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}/ ''; sha256 = "05k145bxgxjh7i9gx1ahigxfpc2v2vwzsy2mc41jvvg51kjr8fnn"; meta = with lib; { description = "The Latin Modern Math (LM Math) font completes the modernization of the Computer Modern family of typefaces designed and programmed by Donald E. Knuth."; homepage = http://www.gust.org.pl/projects/e-foundry/lm-math; # "The Latin Modern Math font is licensed under the GUST Font License (GFL), # which is a free license, legally equivalent to the LaTeX Project Public # License (LPPL), version 1.3c or later." - GUST website license = licenses.lppl13c; maintainers = with maintainers; [ siddharthist ]; platforms = platforms.all; }; } </del>

<ins> { lib, fetchzip }: let version = "1.959"; in fetchzip rec { 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/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"; meta = with lib; { description = "The Latin Modern Math (LM Math) font completes the modernization of the Computer Modern family of typefaces designed and programmed by Donald E. Knuth."; homepage = http://www.gust.org.pl/projects/e-foundry/lm-math; # "The Latin Modern Math font is licensed under the GUST Font License (GFL), # which is a free license, legally equivalent to the LaTeX Project Public # License (LPPL), version 1.3c or later." - GUST website license = licenses.lppl13c; maintainers = with maintainers; [ siddharthist ]; platforms = platforms.all; }; } </ins>

<del> { 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"; }; } </del>

{ stdenv, fetchzip, fetchFromGitHub, ruby, dune, ocamlPackages <del> , ipaexfont, junicode </del> <ins> , ipaexfont, junicode, lmodern, lmmath </ins> }: let <del> 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"; }; </del> camlpdf = ocamlPackages.camlpdf.overrideAttrs (o: { src = fetchFromGitHub { owner = "gfngfn";

installPhase = '' cp -r ${ipaexfont}/share/fonts/opentype/* lib-satysfi/dist/fonts/ cp -r ${junicode}/share/fonts/junicode-ttf/* lib-satysfi/dist/fonts/ <del> cp -r ${lm}/* lib-satysfi/dist/fonts/ cp -r ${lm-math}/otf/latinmodern-math.otf lib-satysfi/dist/fonts/ </del> <ins> 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/ </ins> make install PREFIX=$out LIBDIR=$out/share/satysfi mkdir -p $out/share/satysfi/ cp -r lib-satysfi/dist/ $out/share/satysfi/

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 <ins> latinmodern-math = lmmath; </ins> letsencrypt = certbot; # added 2016-05-16 libaudit = audit; # added 2018-04-25 libcanberra_gtk2 = libcanberra-gtk2; # added 2018-02-25

kochi-substitute-naga10 = callPackage ../data/fonts/kochi-substitute-naga10 {}; <del> latinmodern-math = callPackage ../data/fonts/lm-math {}; </del> lato = callPackage ../data/fonts/lato {}; league-of-moveable-type = callPackage ../data/fonts/league-of-moveable-type {};

libre-franklin = callPackage ../data/fonts/libre-franklin { }; <del> lmmath = callPackage ../data/fonts/lmodern/lmmath.nix {}; </del> <ins> lmmath = callPackage ../data/fonts/lmmath {}; </ins> lmodern = callPackage ../data/fonts/lmodern { };