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:
parent
ac6485efeb
commit
8d8932840e
1 changed files with 2 additions and 11 deletions
|
@ -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}
|
||||||
# ''
|
''
|
||||||
|
|
Loading…
Reference in a new issue