File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,12 @@ defmodule Mix.Tasks.Deps.Nix do
42
42
43
43
`deps_nix` supports git dependencies.
44
44
45
- `builtins.fetchGit` is used, which doesn't require any prefetching and relies
46
- on the git SHA as a unique identifier.
45
+ For open-source GitHub dependencies, `pkgs.fetchFromGitHub` is used. Hashes
46
+ are prefetched using [Mint](https://hexdocs.pm/mint) and hashed using `nix hash path`.
47
+
48
+ `builtins.fetchGit` is used for non-GitHub projects, which doesn't require
49
+ any prefetching and relies on the git SHA as a unique identifier. However, it
50
+ suffers from [several disadvantages](https://discourse.nixos.org/t/fetchgit-vs-fetchgit/23325).
47
51
"""
48
52
49
53
@ shortdoc "Produce nix derivations for mix dependencies"
You can’t perform that action at this time.
0 commit comments