From df4a4c4a52033e2cecee5b92195bda02cbedc636 Mon Sep 17 00:00:00 2001 From: sterni Date: Thu, 19 May 2022 10:46:39 +0200 Subject: chore(3p/cgit): don't unnecessarily install cgit filters We don't use these filters, utilizing cheddar instead. They don't work as it stands anyway, since they require wrapping to find their (mostly Python) dependencies. Change-Id: I19a690dca4fbfc03784850597752ab617f0c0522 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5638 Autosubmit: sterni Reviewed-by: tazjin Tested-by: BuildkiteCI --- third_party/cgit/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/third_party/cgit/default.nix b/third_party/cgit/default.nix index 5f8e069a4e..c82b862ae6 100644 --- a/third_party/cgit/default.nix +++ b/third_party/cgit/default.nix @@ -34,6 +34,12 @@ stdenv.mkDerivation rec { cat tvl-extra.css >> cgit.css ''; + # We don't use the filters and they require wrapping to find their deps + postInstall = '' + rm -rf "$out/lib/cgit/filters" + find "$out" -type d -empty -delete + ''; + meta = { hompepage = "https://git.causal.agency/cgit-pink/"; description = "cgit fork aiming for better maintenance"; -- cgit 1.4.1