From 6707fa256be280701047e4406a2699dd28acd84e Mon Sep 17 00:00:00 2001 From: Lyle Mantooth Date: Wed, 25 Jun 2025 14:28:57 -0400 Subject: [PATCH] Remove possible link from devShell. --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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";