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.

47 lines
1.1 KiB
Nix
Raw Normal View History

2022-10-01 18:44:02 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, fetchpatch
, testers
}:
2019-04-30 20:13:15 +00:00
let self = buildGoModule rec {
pname = "go-jsonnet";
2021-12-30 14:22:51 +00:00
version = "0.18.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}";
2022-10-01 18:44:02 +00:00
hash = "sha256-o/IjXskGaMhvQmTsAS745anGBMI2bwHf/EOEp57H8LU=";
2019-04-30 20:13:15 +00:00
};
2022-10-01 18:44:02 +00:00
patches = [
(fetchpatch {
name = "update-x-sys-for-go-1.18-on-aarch64-darwin.patch";
url = "https://github.com/google/go-jsonnet/commit/7032dd729f7e684dcfb2574f4fe99499165ef9cb.patch";
hash = "sha256-emUcuE9Q4qkXFXLyLvLHjzrKAaQhjcSWLNafABvHxhM=";
})
];
vendorHash = "sha256-H4vLVXpuPkECB15LHoS9N9IwUD7Fzccshwbo5hjeXXc=";
2019-11-30 04:15:24 +00:00
doCheck = false;
subPackages = [ "cmd/jsonnet*" ];
passthru.tests.version = testers.testVersion {
package = self;
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
};
};
in self