diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index a8257c7824a1..6903a1e2581f 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14336,6 +14336,12 @@ githubId = 6930756; name = "Nicolas Mattia"; }; + noaccos = { + name = "Francesco Noacco"; + email = "francesco.noacco2000@gmail.com"; + github = "noaccOS"; + githubId = 24324352; + }; nobbz = { name = "Norbert Melzer"; email = "timmelzer+nixpkgs@gmail.com"; diff --git a/pkgs/by-name/as/astartectl/package.nix b/pkgs/by-name/as/astartectl/package.nix new file mode 100644 index 000000000000..3027c78984b2 --- /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 ]; + }; +}