{ 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 ''