chore(web/cgit-taz): Use in-tree cgit version instead

Drops the previous patch setup to use //third_party/cgit instead.
This commit is contained in:
Vincent Ambo 2020-01-12 02:53:01 +00:00
parent ac6485efeb
commit 8d8932840e

View file

@ -9,15 +9,6 @@
with pkgs.third_party; with pkgs.third_party;
let let
# Patched version of cgit that has monorepo-specific features.
monocgit = cgit.overrideAttrs(old: {
patches = old.patches ++ [
./0001-cgit_monorepo_urls.patch
./0002-cgit_subtree_readmes.patch
./0003-cgit_subtree_about_links.patch
];
});
cgitConfig = writeText "cgitrc" '' cgitConfig = writeText "cgitrc" ''
# Global configuration # Global configuration
virtual-root=/ virtual-root=/
@ -42,7 +33,7 @@ let
thttpdConfig = writeText "thttpd.conf" '' thttpdConfig = writeText "thttpd.conf" ''
port=8080 port=8080
dir=${monocgit}/cgit dir=${cgit}/cgit
nochroot nochroot
novhost novhost
logfile=/dev/stdout logfile=/dev/stdout
@ -77,4 +68,4 @@ let
}); });
in writeShellScriptBin "cgit-launch" '' in writeShellScriptBin "cgit-launch" ''
exec ${thttpdCgit}/bin/thttpd -D -C ${thttpdConfig} exec ${thttpdCgit}/bin/thttpd -D -C ${thttpdConfig}
# '' ''