From 18384ad17512f218a6789ed331eabefb22456ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20K=C3=A1n=C4=9B?= Date: Thu, 3 Jul 2025 14:37:54 +0200 Subject: [PATCH] flake.nix: make the build process more robust --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 1fcc262..c2d14b1 100644 --- a/flake.nix +++ b/flake.nix @@ -18,10 +18,12 @@ pname = "vkane.cz"; version = ""; src = self; + # the theme is included as a submodule, and with nix it is an alchemy whether it is somehow included or not (in which case the empty parent directory might be missing) preConfigure = '' rm --dir --force themes/hermit + mkdir -p themes ln --symbolic '${hermit}' themes/hermit - ''; # TODO + ''; buildPhase = '' '${pkgs.hugo}'/bin/hugo --buildExpired --buildFuture --destination "$out" --minify --printPathWarnings --printI18nWarnings '';