Merge pull request #300258 from noaccOS/init-astartectl

astartectl: init at 23.5.0

authored by Aleksana and committed by GitHub 0d634227 25702783

+41
+6
maintainers/maintainer-list.nix
··· 14336 githubId = 6930756; 14337 name = "Nicolas Mattia"; 14338 }; 14339 nobbz = { 14340 name = "Norbert Melzer"; 14341 email = "timmelzer+nixpkgs@gmail.com";
··· 14336 githubId = 6930756; 14337 name = "Nicolas Mattia"; 14338 }; 14339 + noaccos = { 14340 + name = "Francesco Noacco"; 14341 + email = "francesco.noacco2000@gmail.com"; 14342 + github = "noaccOS"; 14343 + githubId = 24324352; 14344 + }; 14345 nobbz = { 14346 name = "Norbert Melzer"; 14347 email = "timmelzer+nixpkgs@gmail.com";
+35
pkgs/by-name/as/astartectl/package.nix
···
··· 1 + { lib 2 + , buildGoModule 3 + , fetchFromGitHub 4 + , installShellFiles 5 + }: 6 + buildGoModule rec { 7 + pname = "astartectl"; 8 + version = "23.5.0"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "astarte-platform"; 12 + repo = "astartectl"; 13 + rev = "v${version}"; 14 + hash = "sha256-4NgDVuYEeJI5Arq+/+xdyUOBWdCLALM3EKVLSFimJlI="; 15 + }; 16 + 17 + vendorHash = "sha256-Syod7SUsjiM3cdHPZgjH/3qdsiowa0enyV9DN8k13Ws="; 18 + 19 + nativeBuildInputs = [ installShellFiles ]; 20 + 21 + postInstall = '' 22 + installShellCompletion --cmd astartectl \ 23 + --bash <($out/bin/astartectl completion bash) \ 24 + --fish <($out/bin/astartectl completion fish) \ 25 + --zsh <($out/bin/astartectl completion zsh) 26 + ''; 27 + 28 + meta = with lib; { 29 + homepage = "https://github.com/astarte-platform/astartectl"; 30 + description = "Astarte command line client utility"; 31 + license = licenses.asl20; 32 + mainProgram = "astartectl"; 33 + maintainers = with maintainers; [ noaccos ]; 34 + }; 35 + }