biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / misc / tyson / default.nix
blob2809c881c9453a3520fea2d8e9dc30282732a6ad
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , installShellFiles
5 }:
7 buildGoModule rec {
8   pname = "tyson";
9   version = "0.1.1";
11   src = fetchFromGitHub {
12     owner = "jetpack-io";
13     repo = "tyson";
14     rev = "v${version}";
15     hash = "sha256-c4ROLn+BSX7v/4C9/IeU6HiE2YvnqDuXXGp2iZhAVk4=";
16   };
18   vendorHash = "sha256-NhDv7oH8LK/vebwjs55tsCCWVhbZZd15z5ewOF5z9+Y=";
20   nativeBuildInputs = [
21     installShellFiles
22   ];
24   ldflags = [ "-s" "-w" ];
26   postInstall = ''
27     installShellCompletion --cmd tyson \
28       --bash <($out/bin/tyson completion bash) \
29       --fish <($out/bin/tyson completion fish) \
30       --zsh <($out/bin/tyson completion zsh)
31   '';
33   meta = with lib; {
34     description = "TypeScript as a configuration language";
35     mainProgram = "tyson";
36     homepage = "https://github.com/jetpack-io/tyson";
37     changelog = "https://github.com/jetpack-io/tyson/releases/tag/${src.rev}";
38     license = licenses.asl20;
39     maintainers = with maintainers; [ figsoda ];
40   };