diff options
Diffstat (limited to 'configs/gitrepos.nix')
| -rw-r--r-- | configs/gitrepos.nix | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/configs/gitrepos.nix b/configs/gitrepos.nix index 6ff0f6f8..1d6a58ad 100644 --- a/configs/gitrepos.nix +++ b/configs/gitrepos.nix @@ -2,24 +2,30 @@ body = { - nixpkgs.config.packageOverrides = super: { + nixpkgs.config.packageOverrides = super: let + cgit = super.cgit.overrideAttrs (old: { + patches = old.patches or [] ++ [ + ./cgit-dirs-first.patch + ]; + }); + in { cgit = pkgs.symlinkJoin { - name = "${super.cgit.name}-tv"; + name = "${cgit.name}-tv"; paths = [ - (pkgs.runCommand "${super.cgit.name}-tv-overrides" { + (pkgs.runCommand "${cgit.name}-tv-overrides" { } /* sh */ '' mkdir -p $out/lib/cgit/filters cd $out/lib/cgit/filters cp \ - ${super.cgit}/lib/cgit/filters/syntax-highlighting.py \ - ${super.cgit}/lib/cgit/filters/.syntax-highlighting.py-wrapped \ + ${cgit}/lib/cgit/filters/syntax-highlighting.py \ + ${cgit}/lib/cgit/filters/.syntax-highlighting.py-wrapped \ . - sed -i "s:${super.cgit}:$out:" syntax-highlighting.py + sed -i "s:${cgit}:$out:" syntax-highlighting.py sed -i ' s:^\(formatter =\).*:\1 HtmlFormatter(style="algol_nu"): ' .syntax-highlighting.py-wrapped '') - super.cgit + cgit ]; }; }; |
