diff options
author | Aleksana <me@aleksana.moe> | 2024-04-05 20:00:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-05 20:00:22 +0800 |
commit | 0d6342275338f4fa472389052be44625fa0cd571 (patch) | |
tree | 13c198c4eb9f2febcec2bb073453ae5a68f66bac /pkgs/by-name/as | |
parent | 25702783c0c4f55329b245854286babd052df4ae (diff) | |
parent | 951378b00f75244a6c5e2e60f00b38ba850c530e (diff) |
Merge pull request #300258 from noaccOS/init-astartectl
astartectl: init at 23.5.0
Diffstat (limited to 'pkgs/by-name/as')
-rw-r--r-- | pkgs/by-name/as/astartectl/package.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/by-name/as/astartectl/package.nix b/pkgs/by-name/as/astartectl/package.nix new file mode 100644 index 0000000000000..3027c78984b2f --- /dev/null +++ b/pkgs/by-name/as/astartectl/package.nix @@ -0,0 +1,35 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: +buildGoModule rec { + pname = "astartectl"; + version = "23.5.0"; + + src = fetchFromGitHub { + owner = "astarte-platform"; + repo = "astartectl"; + rev = "v${version}"; + hash = "sha256-4NgDVuYEeJI5Arq+/+xdyUOBWdCLALM3EKVLSFimJlI="; + }; + + vendorHash = "sha256-Syod7SUsjiM3cdHPZgjH/3qdsiowa0enyV9DN8k13Ws="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installShellCompletion --cmd astartectl \ + --bash <($out/bin/astartectl completion bash) \ + --fish <($out/bin/astartectl completion fish) \ + --zsh <($out/bin/astartectl completion zsh) + ''; + + meta = with lib; { + homepage = "https://github.com/astarte-platform/astartectl"; + description = "Astarte command line client utility"; + license = licenses.asl20; + mainProgram = "astartectl"; + maintainers = with maintainers; [ noaccos ]; + }; +} |