diff options
author | Aaron Jheng <wentworth@outlook.com> | 2022-02-19 08:26:03 +0000 |
---|---|---|
committer | Aaron Jheng <wentworth@outlook.com> | 2022-02-24 10:59:02 +0000 |
commit | 26c53e85d7949188e0bd1a5eab3e8aa43b63383a (patch) | |
tree | 32e2d4f077efa82a47d8a5d56142fd9c8a175443 /pkgs/development/compilers/go-jsonnet/default.nix | |
parent | 77d8adb8b98a160603a5457159d04935a15c82f4 (diff) |
go-jsonnet: add jsonnet-deps and jsonnet-lint
Diffstat (limited to 'pkgs/development/compilers/go-jsonnet/default.nix')
-rw-r--r-- | pkgs/development/compilers/go-jsonnet/default.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/development/compilers/go-jsonnet/default.nix b/pkgs/development/compilers/go-jsonnet/default.nix index 2b7c6a2f07154..25bedd397b2fe 100644 --- a/pkgs/development/compilers/go-jsonnet/default.nix +++ b/pkgs/development/compilers/go-jsonnet/default.nix @@ -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 |