flake.nix: make the build process more robust
This commit is contained in:
@@ -18,10 +18,12 @@
|
|||||||
pname = "vkane.cz";
|
pname = "vkane.cz";
|
||||||
version = "";
|
version = "";
|
||||||
src = self;
|
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 = ''
|
preConfigure = ''
|
||||||
rm --dir --force themes/hermit
|
rm --dir --force themes/hermit
|
||||||
|
mkdir -p themes
|
||||||
ln --symbolic '${hermit}' themes/hermit
|
ln --symbolic '${hermit}' themes/hermit
|
||||||
''; # TODO
|
'';
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
'${pkgs.hugo}'/bin/hugo --buildExpired --buildFuture --destination "$out" --minify --printPathWarnings --printI18nWarnings
|
'${pkgs.hugo}'/bin/hugo --buildExpired --buildFuture --destination "$out" --minify --printPathWarnings --printI18nWarnings
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user