From 2c5d31957364ab18abcd0ac7b51a09a66401f8a2 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Sat, 24 Aug 2024 00:00:00 +0200 Subject: [PATCH] tinygo: repair hydra build by removing directories from the source, that are not referenced in the build. --- pkgs/development/compilers/tinygo/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/tinygo/default.nix b/pkgs/development/compilers/tinygo/default.nix index 38f75608b3c7..751da950005d 100644 --- a/pkgs/development/compilers/tinygo/default.nix +++ b/pkgs/development/compilers/tinygo/default.nix @@ -34,8 +34,15 @@ buildGoModule rec { owner = "tinygo-org"; repo = "tinygo"; rev = "v${version}"; - hash = "sha256-zoXruGoWitx6kietF3HKTYCtUrXp5SOrf2FEGgVPzkQ="; + hash = "sha256-ehXkYOMQz6zEmofK+3ajwxLK9vIRZava/F3Ki5jTzYo="; fetchSubmodules = true; + # The public hydra server on `hydra.nixos.org` is configured with + # `max_output_size` of 3GB. The purpose of this `postFetch` step + # is to stay below that limit and save 4.1GiB and 428MiB in output + # size respectively. These folders are not referenced in tinygo. + postFetch = '' + rm -r $out/lib/cmsis-svd/data/{SiliconLabs,Freescale} + ''; }; vendorHash = "sha256-rJ8AfJkIpxDkk+9Tf7ORnn7ueJB1kjJUBiLMDV5tias=";