https://orbstack.dev logo
Clarification of commands orbctl _internal brew-po...
# support
i
I am seeking to package orbstack outside of homebrew and I wanted some clarification on what
orbctl _internal brew-postflight
and
orbctl _internal brew-uninstall
are doing.
d
brew-uninstall
currently resets the docker context and uninstalls the privileged helper tool, but please don't hardcode this behavior. if your packaging is of a similar form, then just use the brew commands
i
Nix generally doesn't have the concept of a cleanup/uninstall phase for programs. I think the way to get around this is to always run a script if the program is not enabled (https://github.com/nix-darwin/nix-darwin/blob/973db96394513fd90270ea5a1211a82a4a0ba47f/modules/nix/linux-builder.nix#L164)