MCPcopy Index your code
hub / github.com/jetify-com/devbox / AtLeast

Function AtLeast

nix/nix.go:45–48  ·  view source on GitHub ↗

AtLeast reports if the default Nix installation's version is equal to or newer than the given version. It returns false if it cannot determine the Nix version.

(version string)

Source from the content-addressed store, hash-verified

43// newer than the given version. It returns false if it cannot determine the
44// Nix version.
45func AtLeast(version string) bool {
46 info, _ := Default.Info()
47 return info.AtLeast(version)
48}
49
50// Nix provides an interface for interacting with Nix. The zero-value is valid
51// and uses the first Nix executable found in $PATH.

Callers 4

AtLeastFunction · 0.92
DaemonVersionFunction · 0.92
EnsureNixInstalledFunction · 0.92
FlakeUpdateFunction · 0.92

Calls 2

AtLeastMethod · 0.80
InfoMethod · 0.45

Tested by

no test coverage detected