From 52cdeaf4cc9da9d32926821c78fd331bc8d2f14a Mon Sep 17 00:00:00 2001 From: Alexander Kassouni Date: Tue, 29 Sep 2026 23:29:28 -0700 Subject: restructure for cgit css --- git/theme.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 git/theme.nix (limited to 'git/theme.nix') diff --git a/git/theme.nix b/git/theme.nix new file mode 100644 index 0000000..4d4a395 --- /dev/null +++ b/git/theme.nix @@ -0,0 +1,20 @@ +{ pkgs }: + +# The extra stylesheet for cgit, served next to cgit's stock cgit.css, plus the +# webfont it references. Fonts ship here rather than being pulled from +# kassouni.net so they stay same-origin and need no CORS headers. +pkgs.runCommand "cgit-theme" + { + nativeBuildInputs = [ pkgs.dart-sass ]; + + meta = { + description = "cgit stylesheet matching kassouni.net"; + license = pkgs.lib.licenses.mit; + platforms = pkgs.lib.platforms.all; + }; + } + '' + mkdir -p $out + sass --no-source-map --load-path=${../style} ${./cgit.scss} $out/theme.css + cp -r ${../site/static/fonts} $out/fonts + '' -- cgit v1.3.1