From c85291c602ac666421627d6934ebc6d5be1b93e1 Mon Sep 17 00:00:00 2001 From: sterni Date: Thu, 19 May 2022 10:48:19 +0200 Subject: chore(3p/cgit): strip debug symbols on the cgit cgi script This saves 10MB which seems useful for a CGI binary that is started a lot. Change-Id: I9536955d3962647a3fce2821bbdc4c3826fb4a91 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5639 Autosubmit: sterni Reviewed-by: tazjin Tested-by: BuildkiteCI --- third_party/cgit/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third_party/cgit/default.nix b/third_party/cgit/default.nix index c82b862ae6..c783bda16e 100644 --- a/third_party/cgit/default.nix +++ b/third_party/cgit/default.nix @@ -34,6 +34,8 @@ stdenv.mkDerivation rec { cat tvl-extra.css >> cgit.css ''; + stripDebugList = [ "cgit" ]; + # We don't use the filters and they require wrapping to find their deps postInstall = '' rm -rf "$out/lib/cgit/filters" -- cgit 1.4.1