MCPcopy Create free account
hub / github.com/jetify-com/devbox / runInstallNixCmd

Function runInstallNixCmd

internal/boxcli/setup.go:41–52  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

39}
40
41func runInstallNixCmd(cmd *cobra.Command) error {
42 if nix.BinaryInstalled() {
43 // TODO: If existing installation is not detsys, but new installation is detsys can we detect
44 // that and replace it?
45 ux.Finfof(
46 cmd.ErrOrStderr(),
47 "Nix is already installed. If this is incorrect "+
48 "please remove the nix-shell binary from your path.\n",
49 )
50 }
51 return new(nix.Installer).Run(cmd.Context())
52}
53
54// ensureNixInstalled verifies that nix is installed and that it is of a supported version
55func ensureNixInstalled(cmd *cobra.Command, _args []string) error {

Callers 1

setupCmdFunction · 0.85

Calls 3

BinaryInstalledFunction · 0.92
FinfofFunction · 0.92
RunMethod · 0.65

Tested by

no test coverage detected