From bd4b3eea8542857069e8d1a0f9b5adfc6b5de148 Mon Sep 17 00:00:00 2001 From: Summer Tea Date: Sun, 15 Jun 2025 08:35:46 -0400 Subject: [PATCH 1/3] newcomputermodern: add updateScript --- pkgs/by-name/ne/newcomputermodern/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/ne/newcomputermodern/package.nix b/pkgs/by-name/ne/newcomputermodern/package.nix index c35f9989e50e..029519211241 100644 --- a/pkgs/by-name/ne/newcomputermodern/package.nix +++ b/pkgs/by-name/ne/newcomputermodern/package.nix @@ -3,6 +3,7 @@ stdenvNoCC, fetchgit, fontforge, + gitUpdater, }: stdenvNoCC.mkDerivation (finalAttrs: { @@ -36,6 +37,8 @@ stdenvNoCC.mkDerivation (finalAttrs: { runHook postInstall ''; + passthru.updateScript = gitUpdater { }; + meta = { description = "Computer Modern fonts including matching non-latin alphabets"; homepage = "https://ctan.org/pkg/newcomputermodern"; From d0e93a618d83448ec3c05aab9046e27a6045637a Mon Sep 17 00:00:00 2001 From: Summer Tea Date: Mon, 16 Jun 2025 06:01:12 -0400 Subject: [PATCH 2/3] newcomputermodern: 6.0.0 -> 7.0.2 Changelog: - Version 7.0.2 - Fontspec files reworked to fully support slshape and scshape in all text faces. - Additional fontspec files for Mono-Regular+Book to cover the missing Oblique Mono fonts. - Some more kerning for upright partialdiff and some capital letters. - Version 7.0.1 - Math kerning introduced for Latin Italic Math Capitals and Capital Calligraphics with period and comma. - Several metrics bug fixes. - Version 7.0.0 - Added NewCMSansMath-Regular - Sans letters used for math variables are a new design (and not the original with a slant) so they really look as variables! - NewCM mathbb/symbb symbols in Sans have been reworked to match the Sans design in both style and wight. - Same goes for mathcal/symcal letters. - Math Kerning has been introduced in ALL math fonts to compensate for bad spacing especially of the index of mathcal/symcal letters. - Added ss06 and ss07 to be selected for auto middle beta and theta in Greek. - The kerning of Greek Oblique block has been greatly improved; "theorem" statements now look much better. - testmath-newcm.tex/pdf has been added to the documentation from the AMS bundle to showcase the new SansMath font. Full changelog available at: https://mirrors.rit.edu/CTAN/fonts/newcomputermodern/README --- pkgs/by-name/ne/newcomputermodern/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ne/newcomputermodern/package.nix b/pkgs/by-name/ne/newcomputermodern/package.nix index 029519211241..47dc34fef7ba 100644 --- a/pkgs/by-name/ne/newcomputermodern/package.nix +++ b/pkgs/by-name/ne/newcomputermodern/package.nix @@ -8,12 +8,12 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "newcomputermodern"; - version = "6.0.0"; + version = "7.0.2"; src = fetchgit { url = "https://git.gnu.org.ua/newcm.git"; rev = finalAttrs.version; - hash = "sha256-AMzEytBn9PbyYFNJ2CMPg8ejsL3eFhY+eZHXShaLG9E="; + hash = "sha256-J2k3gbQgmb+hsIYQi+kCccejrNccHryuC140rNwNPTQ="; }; nativeBuildInputs = [ fontforge ]; From 4e2e8acc1242894cb0a2a96eb96f848f21128b81 Mon Sep 17 00:00:00 2001 From: Summer Tea Date: Mon, 16 Jun 2025 06:11:55 -0400 Subject: [PATCH 3/3] newcomputermodern: add `meta.changelog` In theory, we should be able to get version-specific changelogs from `https://git.gnu.org.ua/newcm.git/tree/README?h=${finalAttrs.version}` However, as of upstream d553f56fa9df (slshapes+scshapes, 2025-03-12), the README tracked by git is severely outdated, referring to version `5.1` instead of `7.0.2`. --- pkgs/by-name/ne/newcomputermodern/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/ne/newcomputermodern/package.nix b/pkgs/by-name/ne/newcomputermodern/package.nix index 47dc34fef7ba..175529c1962d 100644 --- a/pkgs/by-name/ne/newcomputermodern/package.nix +++ b/pkgs/by-name/ne/newcomputermodern/package.nix @@ -42,6 +42,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { meta = { description = "Computer Modern fonts including matching non-latin alphabets"; homepage = "https://ctan.org/pkg/newcomputermodern"; + changelog = "https://mirrors.rit.edu/CTAN/fonts/newcomputermodern/README"; # "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