diff --git a/pkgs/development/tools/misc/tyson/default.nix b/pkgs/development/tools/misc/tyson/default.nix new file mode 100644 index 000000000000..b10b78708b58 --- /dev/null +++ b/pkgs/development/tools/misc/tyson/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: + +buildGoModule rec { + pname = "tyson"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "jetpack-io"; + repo = "tyson"; + rev = "v${version}"; + hash = "sha256-c4ROLn+BSX7v/4C9/IeU6HiE2YvnqDuXXGp2iZhAVk4="; + }; + + vendorHash = "sha256-NhDv7oH8LK/vebwjs55tsCCWVhbZZd15z5ewOF5z9+Y="; + + nativeBuildInputs = [ + installShellFiles + ]; + + ldflags = [ "-s" "-w" ]; + + postInstall = '' + installShellCompletion --cmd tyson \ + --bash <($out/bin/tyson completion bash) \ + --fish <($out/bin/tyson completion fish) \ + --zsh <($out/bin/tyson completion zsh) + ''; + + meta = with lib; { + description = "TypeScript as a configuration language"; + homepage = "https://github.com/jetpack-io/tyson"; + changelog = "https://github.com/jetpack-io/tyson/releases/tag/${src.rev}"; + license = licenses.asl20; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6dcf46a01bb4..817546f8c39f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19858,6 +19858,8 @@ with pkgs; typical = callPackage ../development/tools/misc/typical { }; + tyson = callPackage ../development/tools/misc/tyson { }; + uddup = callPackage ../tools/security/uddup { }; udis86 = callPackage ../development/tools/udis86 { };