Change:
When building my NixOS configuration, failed to build. I’m using as my nixpkgs branch. <details<summaryError logs (click to expand) </summary</detailsBuild the flake The system is buildt <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. -- Please run and paste the result.
Looks like a download error, the fonts built fine locally for me. I would just try rerunning it. That might be helpful. But more importantly IMO is that the builds are failing on due to the Github archive download being too big. CC Maybe there is some way to limit tar to extracting only the stuff we care about, or we can download only specific files from the repository.
I’ve re-run the thing at least thrice now, it consistently fails
Is run before checking the hash or after?
It's , it unpacks and then hashes.
Hm. It’s still erroring out… !
The font package itself is the same in and !
I too believe you're having problems with the download. The size of download indicated by your initial log output is 413MB, while in the next screenshot, it goes down to 274MB. Both are far too small considering that the total size of the unpacked archive is around 4GB. For reference, .
I see. I will try again later, maybe the internet was too spotty.
Since the combined size of Noto Sans CJK and Noto Serif CJK is roughly 300MB, it would probably be best to download the files individually. I could create a PR for this, but first I would have to get some sleep ;-)
I am currently having the same issue with the same packages not downloading correctly.
After this merged, this kind of problems can be largely solved by using .
IIRC for GitHub http is preferred to git, because it's somewhat faster (git has more protocol overhead). But in general sparseCheckout could be useful.

Discussion:
nixpkgs = pkgs.callPackage ../modules/misc/nixpkgs/test.nix { inherit evalMinimalConfig; }; node-red = handleTest ./node-red.nix {}; nomad = handleTest ./nomad.nix {}; <ins> noto-fonts = handleTest ./noto-fonts.nix {}; </ins> novacomd = handleTestOn ["x86_64-linux"] ./novacomd.nix {}; nsd = handleTest ./nsd.nix {}; nzbget = handleTest ./nzbget.nix {};

<ins> import ./make-test-python.nix ({ pkgs, lib, ... }: { name = "noto-fonts"; meta = { maintainers = with lib.maintainers; [ nickcao midchildan ]; }; machine = { imports = [ ./common/x11.nix ]; environment.systemPackages = [ pkgs.gnome.gedit ]; fonts = { enableDefaultFonts = false; fonts = with pkgs;[ noto-fonts noto-fonts-cjk-sans noto-fonts-cjk-serif noto-fonts-emoji ]; fontconfig.defaultFonts = { serif = [ "Noto Serif" "Noto Serif CJK SC" ]; sansSerif = [ "Noto Sans" "Noto Sans CJK SC" ]; monospace = [ "Noto Sans Mono" "Noto Sans Mono CJK SC" ]; emoji = [ "Noto Color Emoji" ]; }; }; }; testScript = # extracted from http://www.clagnut.com/blog/2380/ let testText = builtins.toFile "test.txt" '' the quick brown fox jumps over the lazy dog 視野無限廣，窗外有藍天 Eĥoŝanĝo ĉiuĵaŭde. いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす 다람쥐 헌 쳇바퀴에 타고파 中国智造，慧及全球 ''; in '' machine.wait_for_x() machine.succeed("gedit ${testText} >&2 &") machine.wait_for_window(".* - gedit") machine.sleep(10) machine.screenshot("screen") ''; }) </ins>

, fetchFromGitHub , fetchurl , cairo <ins> , nixosTests </ins> , python3 , pkg-config , pngquant

owner = "googlefonts"; repo = "noto-cjk"; inherit rev sha256; <ins> sparseCheckout = "${typeface}/OTC"; </ins> }; installPhase = '' install -m444 -Dt $out/share/fonts/opentype/noto-cjk ${typeface}/OTC/*.ttc ''; <ins> passthru.tests.noto-fonts = nixosTests.noto-fonts; </ins> meta = with lib; { description = "Beautiful and free fonts for CJK languages"; homepage = "https://www.google.com/get/noto/help/cjk/";

typeface = "Sans"; version = "2.004"; rev = "9f7f3c38eab63e1d1fddd8d50937fe4f1eacdb1d"; <del> sha256 = "sha256-BX4tcDcz+RGka8mtced1k3BopUJQ14t1BtAVqTjyPik="; </del> <ins> sha256 = "sha256-pNC/WJCYHSlU28E/CSFsrEMbyCe/6tjevDlOvDK9RwU="; </ins> }; noto-fonts-cjk-serif = mkNotoCJK { typeface = "Serif"; version = "2.000"; rev = "9f7f3c38eab63e1d1fddd8d50937fe4f1eacdb1d"; <del> sha256 = "sha256-BX4tcDcz+RGka8mtced1k3BopUJQ14t1BtAVqTjyPik="; </del> <ins> sha256 = "sha256-Iy4lmWj5l+/Us/dJJ/Jl4MEojE9mrFnhNQxX2zhVngY="; </ins> }; noto-fonts-emoji = let