@@ -18,8 +18,8 @@ let
1818 else
1919 pkgs.fetchzip { inherit (spec) url sha256; };
2020
21− fetch_git = spec:
22− builtins.fetchGit { url = spec.repo; inherit (spec) rev ref; };
21+ fetch_git = pkgs: spec:
22+ pkgs.fetchgit { url = spec.repo; inherit (spec) rev deepClone sha256; };
2323
2424 fetch_builtin-tarball = spec:
2525 builtins.trace
@@ -73,7 +73,7 @@ let
7373 abort "ERROR: niv spec ${name} does not have a 'type' attribute"
7474 else if spec.type == "file" then fetch_file pkgs spec
7575 else if spec.type == "tarball" then fetch_tarball pkgs spec
76− else if spec.type == "git" then fetch_git spec
76+ else if spec.type == "git" then fetch_git pkgs spec
7777 else if spec.type == "builtin-tarball" then fetch_builtin-tarball spec
7878 else if spec.type == "builtin-url" then fetch_builtin-url spec
7979 else