Eval is raw nix eval. Needs to be parsed. Useful for stuff like nix eval --raw nixpkgs/9ef09e06806e79e32e30d17aee6879d69c011037#fuse3 to determine if a package if a package can be installed in system.
(path string)
| 51 | // nix eval --raw nixpkgs/9ef09e06806e79e32e30d17aee6879d69c011037#fuse3 |
| 52 | // to determine if a package if a package can be installed in system. |
| 53 | func Eval(path string) ([]byte, error) { |
| 54 | cmd := Command("eval", "--raw", path) |
| 55 | return cmd.CombinedOutput(context.TODO()) |
| 56 | } |
| 57 | |
| 58 | func IsInsecureAllowed() bool { |
| 59 | allowed, _ := strconv.ParseBool(os.Getenv("NIXPKGS_ALLOW_INSECURE")) |
no test coverage detected