From efb0a5d69bc626eadd016ddb6ab764dfda19da1a Mon Sep 17 00:00:00 2001 From: wrvsrx Date: Sat, 6 May 2023 15:22:47 +0800 Subject: [PATCH 1/3] noto-fonts-cjk-sans: use official release version noto-fonts-cjk has released Sans2.004 --- pkgs/data/fonts/noto-fonts/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/noto-fonts/default.nix b/pkgs/data/fonts/noto-fonts/default.nix index d0ac56cd5d39..ec8fe704f2f9 100644 --- a/pkgs/data/fonts/noto-fonts/default.nix +++ b/pkgs/data/fonts/noto-fonts/default.nix @@ -154,8 +154,8 @@ rec { noto-fonts-cjk-sans = mkNotoCJK { typeface = "Sans"; version = "2.004"; - rev = "9f7f3c38eab63e1d1fddd8d50937fe4f1eacdb1d"; - sha256 = "sha256-PWpcTBnBRK87ZuRI/PsGp2UMQgCCyfkLHwvB1mOl5K0="; + rev = "Sans2.004"; + sha256 = "sha256-IgalJkiOAVjNxKaPAQWfb5hKeqclliR4qVXCq63FGWY="; }; noto-fonts-cjk-serif = mkNotoCJK { From cf12cc9d6ab115a2c5824b7b70b5f461054570e2 Mon Sep 17 00:00:00 2001 From: wrvsrx Date: Sat, 6 May 2023 15:25:49 +0800 Subject: [PATCH 2/3] noto-fonts-cjk-serif: 2.000 -> 2.001 --- pkgs/data/fonts/noto-fonts/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/data/fonts/noto-fonts/default.nix b/pkgs/data/fonts/noto-fonts/default.nix index ec8fe704f2f9..80aeabc786c1 100644 --- a/pkgs/data/fonts/noto-fonts/default.nix +++ b/pkgs/data/fonts/noto-fonts/default.nix @@ -160,9 +160,9 @@ rec { noto-fonts-cjk-serif = mkNotoCJK { typeface = "Serif"; - version = "2.000"; - rev = "9f7f3c38eab63e1d1fddd8d50937fe4f1eacdb1d"; - sha256 = "sha256-1w66Ge7DZjbONGhxSz69uFhfsjMsDiDkrGl6NsoB7dY="; + version = "2.001"; + rev = "Serif2.001"; + sha256 = "sha256-y1103SS0qkZMhEL5+7kQZ+OBs5tRaqkqOcs4796Fzhg="; }; noto-fonts-emoji = From b7028fd6dc038055f2edf7ea5c41c5be413ddced Mon Sep 17 00:00:00 2001 From: wrvsrx Date: Sat, 6 May 2023 18:35:08 +0800 Subject: [PATCH 3/3] noto-fonts-cjk: use typeface and version to generate git rev --- pkgs/data/fonts/noto-fonts/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/data/fonts/noto-fonts/default.nix b/pkgs/data/fonts/noto-fonts/default.nix index 80aeabc786c1..600074002f53 100644 --- a/pkgs/data/fonts/noto-fonts/default.nix +++ b/pkgs/data/fonts/noto-fonts/default.nix @@ -89,7 +89,7 @@ rec { }; }; - mkNotoCJK = { typeface, version, rev, sha256 }: + mkNotoCJK = { typeface, version, sha256 }: stdenvNoCC.mkDerivation { pname = "noto-fonts-cjk-${lib.toLower typeface}"; inherit version; @@ -97,7 +97,8 @@ rec { src = fetchFromGitHub { owner = "googlefonts"; repo = "noto-cjk"; - inherit rev sha256; + rev = "${typeface}${version}"; + inherit sha256; sparseCheckout = [ "${typeface}/Variable/OTC" ]; }; @@ -154,14 +155,12 @@ rec { noto-fonts-cjk-sans = mkNotoCJK { typeface = "Sans"; version = "2.004"; - rev = "Sans2.004"; sha256 = "sha256-IgalJkiOAVjNxKaPAQWfb5hKeqclliR4qVXCq63FGWY="; }; noto-fonts-cjk-serif = mkNotoCJK { typeface = "Serif"; version = "2.001"; - rev = "Serif2.001"; sha256 = "sha256-y1103SS0qkZMhEL5+7kQZ+OBs5tRaqkqOcs4796Fzhg="; };