LnL7 / nix-darwin

nix modules for darwin
MIT License
3.19k stars 457 forks source link

homebrew may remove before install #1086

Open jigaowan opened 2 months ago

jigaowan commented 2 months ago

I install ollama in brews before, now I want cask version move it to casks and darwin-rebuild got error

Installing ollama
==> Downloading https://github.com/ollama/ollama/releases/download/v0.3.10/Ollama-darwin.zip
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/658928958/e27f6be2-dbb8-4191-ab76-be5e80283cc9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240919%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240919T084146Z&X-Amz-Expires=300&X-Amz-Signature=b867a01853bf572b3b002b6701e465fd203fc1d305285761894facf66b419112&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=658928958&response-content-disposition=attachment%3B%20filename%3DOllama-darwin.zip&response-content-type=application%2Foctet-stream
==> Installing Cask ollama
==> Moving App 'Ollama.app' to '/Applications/Ollama.app'
==> Backing App 'Ollama.app' up to '/opt/homebrew/Caskroom/ollama/0.3.10/Ollama.app'
Error: It seems there is already a Binary at '/opt/homebrew/bin/ollama'.
==> Removing App '/Applications/Ollama.app'
==> Purging files for version 0.3.10 of Cask ollama
Installing ollama has failed!