Skip to content

Commit

Permalink
fetch: do not assume experimental features are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
figsoda committed Aug 8, 2023
1 parent f6fd4d6 commit 396da1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetch.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 396da1d

Please sign in to comment.