File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 18
18
else
19
19
pkgs . fetchzip { inherit ( spec ) url sha256 ; } ;
20
20
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 ; } ;
23
23
24
24
fetch_builtin-tarball = spec :
25
25
builtins . trace
73
73
abort "ERROR: niv spec ${ name } does not have a 'type' attribute"
74
74
else if spec . type == "file" then fetch_file pkgs spec
75
75
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
77
77
else if spec . type == "builtin-tarball" then fetch_builtin-tarball spec
78
78
else if spec . type == "builtin-url" then fetch_builtin-url spec
79
79
else
You can’t perform that action at this time.
0 commit comments