Current section
Files
Jump to
Current section
Files
lib/deps_nix/fetch_git.ex
defmodule DepsNix.FetchGit do
@type t :: %__MODULE__{
url: String.t(),
rev: String.to()
}
@enforce_keys [:url, :rev]
defstruct [:url, :rev]
defimpl String.Chars do
def to_string(%DepsNix.FetchGit{} = g) do
"""
builtins.fetchGit {
url = "#{g.url}";
rev = "#{g.rev}";
}\
"""
end
end
end