2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
installShellFiles,
|
|
|
|
qovery-cli,
|
|
|
|
testers,
|
2022-09-09 14:08:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "qovery-cli";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "0.94.14";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Qovery";
|
2023-10-19 13:55:26 +00:00
|
|
|
repo = "qovery-cli";
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-A2U/NoVbUW0U5/1Q/jJ5MFBrcHB1c23EMAY3bwWZ/R4=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-qrDadHGhjwsAIfIQIkUeT7Tehv1sTtsfzgPyKxc5zJE=";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd ${pname} \
|
|
|
|
--bash <($out/bin/${pname} completion bash) \
|
|
|
|
--fish <($out/bin/${pname} completion fish) \
|
|
|
|
--zsh <($out/bin/${pname} completion zsh)
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = qovery-cli;
|
|
|
|
command = "HOME=$(mktemp -d); ${pname} version";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Qovery Command Line Interface";
|
|
|
|
homepage = "https://github.com/Qovery/qovery-cli";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/Qovery/qovery-cli/releases/tag/v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "qovery-cli";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
}
|