nagiosPlugins.check_ssl_cert: 2.85.1 -> 2.86.0 (#379244)
[NixPkgs.git] / pkgs / by-name / ty / tyson / package.nix
blobace33ac47201a786f21cb9278fdb4fbf5b21c2d1
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   installShellFiles,
6 }:
8 buildGoModule rec {
9   pname = "tyson";
10   version = "0.1.1-unstable-2024-04-10";
12   src = fetchFromGitHub {
13     owner = "jetpack-io";
14     repo = "tyson";
15     rev = "d6b38819db9b260928b29f4d39bf4c72841c6a01";
16     hash = "sha256-NoQJBEedV3NDNQ4PVvvjjsO7N+rq40LWKp962P+naEY=";
17   };
19   vendorHash = "sha256-kJIfKgVaHuCYvvTZXyuZ/Hg8z1BlW4oW6+5s1inFizg=";
21   nativeBuildInputs = [
22     installShellFiles
23   ];
25   ldflags = [
26     "-s"
27     "-w"
28   ];
30   postInstall = ''
31     installShellCompletion --cmd tyson \
32       --bash <($out/bin/tyson completion bash) \
33       --fish <($out/bin/tyson completion fish) \
34       --zsh <($out/bin/tyson completion zsh)
35   '';
37   meta = with lib; {
38     description = "TypeScript as a configuration language";
39     mainProgram = "tyson";
40     homepage = "https://github.com/jetify-com/tyson";
41     changelog = "https://github.com/jetify-com/tyson/releases/tag/${src.rev}";
42     license = licenses.asl20;
43     maintainers = with maintainers; [ figsoda ];
44   };