2023-04-29 16:46:19 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, go-jsonnet }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "go-jsonnet";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.20.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
2022-10-06 18:32:54 +00:00
|
|
|
repo = pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-P69tguBrFF/CSCOfHjCfBT5710oJdhZDh3kMCbc32eE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
vendorHash = "sha256-j1fTOUpLx34TgzW94A/BctLrg9XoTtb3cBizhVJoEEI=";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
2022-03-10 19:12:11 +00:00
|
|
|
subPackages = [ "cmd/jsonnet*" ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-10-30 15:09:59 +00:00
|
|
|
package = go-jsonnet;
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "v${version}";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An implementation of Jsonnet in pure Go";
|
|
|
|
homepage = "https://github.com/google/go-jsonnet";
|
|
|
|
license = licenses.asl20;
|
2022-03-10 19:12:11 +00:00
|
|
|
maintainers = with maintainers; [ nshalman aaronjheng ];
|
|
|
|
mainProgram = "jsonnet";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-10-30 15:09:59 +00:00
|
|
|
}
|