Initial commit

This commit is contained in:
Vojtěch Káně
2021-06-01 17:45:59 +02:00
commit e908551eca
18 changed files with 266 additions and 0 deletions

32
flake.nix Normal file
View File

@@ -0,0 +1,32 @@
{
description = "vkane.cz";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.hermit = {
url = "github:vojta001/hermit/tmp";
flake = false;
};
outputs = { self, nixpkgs, hermit }:
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in
{
website = pkgs.stdenv.mkDerivation {
pname = "vkane.cz";
version = "";
src = self;
preConfigure = ''
rm --dir --force themes/hermit
ln --symbolic '${hermit}' themes/hermit
''; # TODO
buildPhase = ''
'${pkgs.hugo}'/bin/hugo --buildExpired --buildFuture --destination "$out" --minify --path-warnings --i18n-warnings
'';
dontInstall = true;
};
};
}