2b866d8b53
Add binary jsonnetfmt to go-jsonnet package go-jsonnet added a jsonnetfmt implementation in [0.16.0](https://github.com/google/jsonnet/releases/tag/v0.16.0) As nix includes the C++ jsonnetfmt implementation in the main jsonnet package, it makes sense to mirror that pattern in the go package.
25 lines
633 B
Nix
25 lines
633 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-jsonnet";
|
|
version = "0.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "go-jsonnet";
|
|
rev = "v${version}";
|
|
sha256 = "17606gc75wnkm64am4hmlv7m3fy2hi8rnzadp6nrgpcd6rl26m83";
|
|
};
|
|
|
|
vendorSha256 = "0nsm4gsbbn8myz4yfi6m7qc3iizhdambsr18iks0clkdn3mi2jn1";
|
|
|
|
subPackages = [ "cmd/jsonnet" "cmd/jsonnetfmt" ];
|
|
|
|
meta = with lib; {
|
|
description = "An implementation of Jsonnet in pure Go";
|
|
homepage = "https://github.com/google/go-jsonnet";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ nshalman ];
|
|
};
|
|
}
|