nixpkgs source: delete existing symlink

This commit is contained in:
Jörg Thalheim
2025-04-25 16:31:18 +02:00
parent e78bd89426
commit 97564052ab

View File

@@ -55,6 +55,9 @@ let
source = runCommand "clan-cli-source" { } '' source = runCommand "clan-cli-source" { } ''
cp -r ${./.} $out cp -r ${./.} $out
chmod -R +w $out chmod -R +w $out
# In cases where the devshell created this file, this will already exist
rm -f $out/clan_cli/nixpkgs
ln -sf ${nixpkgs'} $out/clan_cli/nixpkgs ln -sf ${nixpkgs'} $out/clan_cli/nixpkgs
cp -r ${../../templates} $out/clan_cli/templates cp -r ${../../templates} $out/clan_cli/templates
''; '';