dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
site/default.nix (590B)
1{
2 site ? null,
3 lib,
4 pkgs,
5}:
6pkgs.stdenvNoCC.mkDerivation {
7 pname = "website";
8 version = "stable";
9 src = ./.;
10
11 nativeBuildInputs = [
12 pkgs.zola
13 (pkgs.python3.withPackages (python: [python.fonttools python.brotli]))
14 ];
15 installPhase = "cp -r public $out";
16 buildPhase = ''
17 zola build ${
18 if (site != null)
19 then "--base-url " + lib.escapeShellArg site
20 else ""
21 }
22 python3 scripts/optimize_fonts.py public
23 '';
24
25 meta = {
26 description = "My Personal Website";
27 license = lib.licenses.gpl3Only;
28 maintainers = ["maydayv7"];
29 };
30}