Closed valeriangalliat closed 8 years ago
This update from NixOS/nixpkgs#11671 makes it output a Nix expression instead of just the hash at the end, like:
{ url = "..."; rev = "..."; sha256 = "..."; }
Now the Hash variable is the full line {{ HashType }} == "{{ Hash }}" and is included as is in the template.
Hash
{{ HashType }} == "{{ Hash }}"
Just realized the implementation was breaking other VCS' so I make a check to apply it only to nix-prefetch-git. Also supports the old nix-prefetch-git behavior.
Closing because #8.
This update from NixOS/nixpkgs#11671 makes it output a Nix expression instead of just the hash at the end, like:
Now the
Hash
variable is the full line{{ HashType }} == "{{ Hash }}"
and is included as is in the template.