Initial commit
This commit is contained in:
32
flake.nix
Normal file
32
flake.nix
Normal 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;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user