kamilchm / go2nix

Reproducible builds and development environment for Go
MIT License
94 stars 17 forks source link

Make go2nix compatible with nix-prefetch-git 2015-12-13 update #6

Closed valeriangalliat closed 8 years ago

valeriangalliat commented 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.

valeriangalliat commented 8 years ago

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.

valeriangalliat commented 8 years ago

Closing because #8.