nixpkgs/pkgs/development/compilers/go-jsonnet/default.nix

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

39 lines
1.0 KiB
Nix
Raw Normal View History

2022-10-28 09:30:40 +00:00
{ lib, buildGoModule, fetchFromGitHub, fetchpatch, testers, go-jsonnet }:
2019-04-30 20:13:15 +00:00
2022-10-28 09:30:40 +00:00
buildGoModule rec {
pname = "go-jsonnet";
2022-10-28 09:30:40 +00:00
version = "0.19.1";
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}";
2022-10-28 09:30:40 +00:00
hash = "sha256-FgQYnas0qkIedRAA8ApZXLzEylg6PS6+8zzl7j+yOeI=";
2019-04-30 20:13:15 +00:00
};
2022-10-28 09:30:40 +00:00
vendorSha256 = "sha256-j1fTOUpLx34TgzW94A/BctLrg9XoTtb3cBizhVJoEEI=";
2022-10-01 18:44:02 +00:00
patches = [
2022-10-28 09:30:40 +00:00
# See https://github.com/google/go-jsonnet/issues/653.
2022-10-01 18:44:02 +00:00
(fetchpatch {
2022-10-28 09:30:40 +00:00
url = "https://github.com/google/go-jsonnet/commit/5712f2ed2c8dfa685e4f1234eefc7690a580af6f.patch";
hash = "sha256-/+6BlAaul4FoD7pq7yAy1xG78apEBuH2LC4fsfbugFQ=";
2022-10-01 18:44:02 +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 = "An 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
}