go-jsonnet: add jsonnet-deps and jsonnet-lint

This commit is contained in:
Aaron Jheng 2022-02-19 08:26:03 +00:00
parent 77d8adb8b9
commit 26c53e85d7
No known key found for this signature in database
GPG key ID: F6A547A869D050A3

View file

@ -1,6 +1,6 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, testVersion }:
buildGoModule rec {
let self = buildGoModule rec {
pname = "go-jsonnet";
version = "0.18.0";
@ -15,12 +15,19 @@ buildGoModule rec {
doCheck = false;
subPackages = [ "cmd/jsonnet" "cmd/jsonnetfmt" ];
subPackages = [ "cmd/jsonnet*" ];
passthru.tests.version = testVersion {
package = self;
version = "v${version}";
};
meta = with lib; {
description = "An implementation of Jsonnet in pure Go";
homepage = "https://github.com/google/go-jsonnet";
license = licenses.asl20;
maintainers = with maintainers; [ nshalman ];
maintainers = with maintainers; [ nshalman aaronjheng ];
mainProgram = "jsonnet";
};
}
};
in self