From 396da1d3b7c26bf4ced5f44eb83044c76bf14d2c Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 8 Aug 2023 17:58:59 -0400 Subject: [PATCH] fetch: do not assume experimental features are enabled --- src/fetch.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetch.zig b/src/fetch.zig index 1e7b950..411e204 100644 --- a/src/fetch.zig +++ b/src/fetch.zig @@ -34,7 +34,7 @@ pub fn fetch(alloc: Allocator, deps: *StringHashMap(Dependency)) !void { var child = try alloc.create(ChildProcess); const ref = try fmt.allocPrint(alloc, "tarball+{s}", .{dep.url}); - const argv = &[_][]const u8{ "nix", "flake", "prefetch", "--json", ref }; + const argv = &[_][]const u8{ "nix", "flake", "prefetch", "--json", "--extra-experimental-features", "flakes nix-command", ref }; child.* = ChildProcess.init(argv, alloc); child.stdin_behavior = .Ignore; child.stdout_behavior = .Pipe;