From f1c63d0e8d19178fd5ce864c0d67ade56392cbf9 Mon Sep 17 00:00:00 2001 From: Daniel Xu Date: Mon, 22 Jul 2024 15:40:10 -0600 Subject: [PATCH] appimage: Strip header files out of appimage Some header files libclang ships are quite huge (megabytes). Looks like they're for ARM. Regardless, we don't need any header files at runtime. This saves us about 1M of disk space. --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 16adeff73dd1..8dce0120a137 100644 --- a/flake.nix +++ b/flake.nix @@ -159,6 +159,7 @@ # Exclude the following groups to reduce appimage size: # # *.a: Static archives are not necessary at runtime + # *.h: Header files are not necessary at runtime (some ARM headers for clang are large) # *.pyc, *.py, *.whl: bpftrace does not use python at runtime # libLLVM-11.so: Appimage uses the latest llvm we support, so not llvm11 # @@ -172,6 +173,7 @@ # ``` exclude = [ "... *.a" + "... *.h" "... *.pyc" "... *.py" "... *.whl"