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)
| 43 | // newer than the given version. It returns false if it cannot determine the |
| 44 | // Nix version. |
| 45 | func 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. |
no test coverage detected