about summary refs log tree commit diff
diff options
context:
space:
mode:
authoremilylange <git@emilylange.de>2024-06-12 03:35:28 +0200
committeremilylange <git@emilylange.de>2024-06-12 23:52:22 +0200
commit6ea93b6484ee0d09d69afdf02fda2dffa1b15e61 (patch)
treed3495c2d0bb748d527f0d9911b770a8c440a4b15
parent895aceeafad8a67f9c5ace6ac6ddddeb0281b222 (diff)
chromium: extend release tarball excludes to keep size below 3 GB
Starting with M126, the upstream release tarball includes two full
Debian sysroots to compile chromium with:

~~~shell
$ du -sh build/linux/debian_bullseye_*
835M	build/linux/debian_bullseye_amd64-sysroot
739M	build/linux/debian_bullseye_i386-sysroot
~~~

But they are huge and we don't need them.

In order to stay below the current 3 GB tarball size limit that is
dictated by hydra.nixos.org's max-output-limit, we add them to our
exclude patterns.

This is a no-op for < M126.

(cherry picked from commit bda04d27a0c0a482d3506d74f367f96155392e66)
-rw-r--r--pkgs/applications/networking/browsers/chromium/recompress-tarball.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/chromium/recompress-tarball.nix b/pkgs/applications/networking/browsers/chromium/recompress-tarball.nix
index 0e77dd230f657..e663c393d8dc4 100644
--- a/pkgs/applications/networking/browsers/chromium/recompress-tarball.nix
+++ b/pkgs/applications/networking/browsers/chromium/recompress-tarball.nix
@@ -34,6 +34,7 @@ fetchurl ({
       --one-top-level=source \
       --exclude=third_party/llvm \
       --exclude=third_party/rust-src \
+      --exclude='build/linux/debian_*-sysroot' \
       --strip-components=1
 
     tar \