From bb8b838a0a1ec195a97d94e488ad804872575738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Wed, 26 Feb 2025 23:47:00 -0300 Subject: [PATCH] =?UTF-8?q?roboto:=20keep=20the=20original=20font=20?= =?UTF-8?q?=E2=80=98modified=E2=80=99=20timestamp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the option --no-recalc-timestamp, ttx uses the mtime of the font file when generating the timestamp (https://github.com/fonttools/fonttools/blob/b86a36fa46383947330f309121ec1b0feaf391ab/Lib/fontTools/ttx.py#L329), resulting in an unreproducible package. --- pkgs/by-name/ro/roboto/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ro/roboto/package.nix b/pkgs/by-name/ro/roboto/package.nix index b2b7880f9726..fe4a666fbc6a 100644 --- a/pkgs/by-name/ro/roboto/package.nix +++ b/pkgs/by-name/ro/roboto/package.nix @@ -30,7 +30,7 @@ stdenvNoCC.mkDerivation rec { ttx -v -o $fontname.xml $file substituteInPlace $fontname.xml \ --replace-fail "" "" - ttx $fontname.xml -o $fontname.ttf + ttx --no-recalc-timestamp $fontname.xml -o $fontname.ttf done install -Dm644 *.ttf -t $out/share/fonts/truetype