Skip to content

Commit

Permalink
fixup! Allow source spec to be a file
Browse files Browse the repository at this point in the history
  • Loading branch information
angerman committed Sep 24, 2020
1 parent 18b16f6 commit 459dd8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nix/sources.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ let
else
pkgs.fetchzip { inherit (spec) url sha256; };

fetch_git = spec:
builtins.fetchGit { url = spec.repo; inherit (spec) rev ref; };
fetch_git = pkgs: spec:
pkgs.fetchgit { url = spec.repo; inherit (spec) rev deepClone sha256; };

fetch_builtin-tarball = spec:
builtins.trace
Expand Down Expand Up @@ -73,7 +73,7 @@ let
abort "ERROR: niv spec ${name} does not have a 'type' attribute"
else if spec.type == "file" then fetch_file pkgs spec
else if spec.type == "tarball" then fetch_tarball pkgs spec
else if spec.type == "git" then fetch_git spec
else if spec.type == "git" then fetch_git pkgs spec
else if spec.type == "builtin-tarball" then fetch_builtin-tarball spec
else if spec.type == "builtin-url" then fetch_builtin-url spec
else
Expand Down

0 comments on commit 459dd8f

Please sign in to comment.