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