We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18b16f6 commit 459dd8fCopy full SHA for 459dd8f
nix/sources.nix
@@ -18,8 +18,8 @@ let
18
else
19
pkgs.fetchzip { inherit (spec) url sha256; };
20
21
- fetch_git = spec:
22
- builtins.fetchGit { url = spec.repo; inherit (spec) rev ref; };
+ fetch_git = pkgs: spec:
+ pkgs.fetchgit { url = spec.repo; inherit (spec) rev deepClone sha256; };
23
24
fetch_builtin-tarball = spec:
25
builtins.trace
@@ -73,7 +73,7 @@ let
73
abort "ERROR: niv spec ${name} does not have a 'type' attribute"
74
else if spec.type == "file" then fetch_file pkgs spec
75
else if spec.type == "tarball" then fetch_tarball pkgs spec
76
- else if spec.type == "git" then fetch_git spec
+ else if spec.type == "git" then fetch_git pkgs spec
77
else if spec.type == "builtin-tarball" then fetch_builtin-tarball spec
78
else if spec.type == "builtin-url" then fetch_builtin-url spec
79
0 commit comments