blob: 4d4a395fdbd6045fe7a90a0b11334b2495a8f92e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
''
|