nixpkgs/pkgs/by-name/go/go-jsonnet/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
799 B
Nix
Raw Normal View History

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 {
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
subPackages = [ "cmd/jsonnet*" ];
passthru.tests.version = testers.testVersion {
2022-10-28 09:30:40 +00:00
package = go-jsonnet;
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;
maintainers = with maintainers; [
nshalman
aaronjheng
];
mainProgram = "jsonnet";
2019-04-30 20:13:15 +00:00
};
2022-10-28 09:30:40 +00:00
}