diff --git a/nix-js/runtime-ts/src/builtins/io.ts b/nix-js/runtime-ts/src/builtins/io.ts index 91bc5bc..895688a 100644 --- a/nix-js/runtime-ts/src/builtins/io.ts +++ b/nix-js/runtime-ts/src/builtins/io.ts @@ -185,7 +185,7 @@ export const fetchGit = (args: NixValue): NixAttrs => { ]); } const attrs = forceAttrs(args); - const url = forceStringValue(select("attrs", ["url"])); + const url = forceStringValue(select(attrs, ["url"])); const gitRef = attrs.has("ref") ? forceStringValue(attrs.get("ref") as NixValue) : null; const rev = attrs.has("rev") ? forceStringValue(attrs.get("rev") as NixValue) : null; const shallow = attrs.has("shallow") ? forceBool(attrs.get("shallow") as NixValue) : false;