2023-04-18 02:05:19 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
testers,
|
|
|
|
go-jsonnet,
|
|
|
|
}:
|
2019-04-30 20:13:15 +00:00
|
|
|
|
2022-10-28 09:30:40 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "go-jsonnet";
|
2023-04-18 02:05:19 +00:00
|
|
|
version = "0.20.0";
|
2019-04-30 20:13:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
2022-10-01 18:44:02 +00:00
|
|
|
repo = pname;
|
2019-11-30 04:15:24 +00:00
|
|
|
rev = "v${version}";
|
2023-04-18 02:05:19 +00:00
|
|
|
hash = "sha256-P69tguBrFF/CSCOfHjCfBT5710oJdhZDh3kMCbc32eE=";
|
2019-04-30 20:13:15 +00:00
|
|
|
};
|
|
|
|
|
2023-01-24 12:55:52 +00:00
|
|
|
vendorHash = "sha256-j1fTOUpLx34TgzW94A/BctLrg9XoTtb3cBizhVJoEEI=";
|
2022-10-28 09:30:40 +00:00
|
|
|
|
2022-02-19 08:26:03 +00:00
|
|
|
subPackages = [ "cmd/jsonnet*" ];
|
|
|
|
|
2022-04-20 14:40:48 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-10-28 09:30:40 +00:00
|
|
|
package = go-jsonnet;
|
2022-02-19 08:26:03 +00:00
|
|
|
version = "v${version}";
|
|
|
|
};
|
2019-11-30 04:15:24 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2019-04-30 20:13:15 +00:00
|
|
|
description = "Implementation of Jsonnet in pure Go";
|
2019-11-30 04:15:24 +00:00
|
|
|
homepage = "https://github.com/google/go-jsonnet";
|
|
|
|
license = licenses.asl20;
|
2022-02-19 08:26:03 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
nshalman
|
|
|
|
aaronjheng
|
|
|
|
];
|
|
|
|
mainProgram = "jsonnet";
|
2019-04-30 20:13:15 +00:00
|
|
|
};
|
2022-10-28 09:30:40 +00:00
|
|
|
}
|