depot/third_party/nixpkgs/pkgs/development/compilers/go-jsonnet/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

30 lines
775 B
Nix

{ lib, buildGoModule, fetchFromGitHub, testers, go-jsonnet }:
buildGoModule rec {
pname = "go-jsonnet";
version = "0.20.0";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
hash = "sha256-P69tguBrFF/CSCOfHjCfBT5710oJdhZDh3kMCbc32eE=";
};
vendorHash = "sha256-j1fTOUpLx34TgzW94A/BctLrg9XoTtb3cBizhVJoEEI=";
subPackages = [ "cmd/jsonnet*" ];
passthru.tests.version = testers.testVersion {
package = go-jsonnet;
version = "v${version}";
};
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 aaronjheng ];
mainProgram = "jsonnet";
};
}