diff --git a/flake.nix b/flake.nix index ae08991..9efac27 100644 --- a/flake.nix +++ b/flake.nix @@ -19,8 +19,11 @@ src = ./.; nativeBuildInputs = [ zola ]; configurePhase = '' - mkdir -p "themes/${themeName}" - cp -a ${hermit-zola}/* "themes/${themeName}/" + if [ -h "themes/${themeName}" ]; then + rm "themes/${themeName}" + fi + mkdir -p "themes/${themeName}" + cp -a ${hermit-zola}/* "themes/${themeName}/" ''; buildPhase = "${zola}/bin/zola build"; installPhase = "cp -r public $out";