about summary refs log tree commit diff
path: root/third_party/cgit
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-05-19T08·46+0200
committerclbot <clbot@tvl.fyi>2022-05-19T09·23+0000
commitdf4a4c4a52033e2cecee5b92195bda02cbedc636 (patch)
tree1854391f9bd2a0786d445dbe266b3c662bc706f7 /third_party/cgit
parent92a0d9f7da3c6c9a7fd2d36970e7ca3f38323e29 (diff)
chore(3p/cgit): don't unnecessarily install cgit filters r/4096
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 <sternenseemann@systemli.org>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/cgit')
-rw-r--r--third_party/cgit/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/cgit/default.nix b/third_party/cgit/default.nix
index 5f8e069a4e13..c82b862ae636 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";