1{ lib, buildGoModule, fetchFromGitHub, testers, go-jsonnet }:
2
3buildGoModule rec {
4 pname = "go-jsonnet";
5 version = "0.20.0";
6
7 src = fetchFromGitHub {
8 owner = "google";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-P69tguBrFF/CSCOfHjCfBT5710oJdhZDh3kMCbc32eE=";
12 };
13
14 vendorHash = "sha256-j1fTOUpLx34TgzW94A/BctLrg9XoTtb3cBizhVJoEEI=";
15
16 subPackages = [ "cmd/jsonnet*" ];
17
18 passthru.tests.version = testers.testVersion {
19 package = go-jsonnet;
20 version = "v${version}";
21 };
22
23 meta = with lib; {
24 description = "Implementation of Jsonnet in pure Go";
25 homepage = "https://github.com/google/go-jsonnet";
26 license = licenses.asl20;
27 maintainers = with maintainers; [ nshalman aaronjheng ];
28 mainProgram = "jsonnet";
29 };
30}