mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
c10dfce278
astartectl 24.5.0 updates go version, and it now compiles without issues
36 lines
918 B
Nix
36 lines
918 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "astartectl";
|
|
version = "24.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "astarte-platform";
|
|
repo = "astartectl";
|
|
rev = "v${version}";
|
|
hash = "sha256-4Iyd+1hLSatWyeV2J7RSqo2jVEc8dSp5JBObsn3RciI=";
|
|
};
|
|
|
|
vendorHash = "sha256-NWPLHbUHrk/oJXCOJF8kKhQiZR8aqZChxuz73Acu1cM=";
|
|
|
|
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 ];
|
|
};
|
|
}
|