Skip to content

Commit 459dd8f

Browse files
committed
fixup! Allow source spec to be a file
1 parent 18b16f6 commit 459dd8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nix/sources.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)