mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
f71154a157
Diff: https://github.com/Qovery/qovery-cli/compare/v0.58.1...v0.58.3 Changelog: https://github.com/Qovery/qovery-cli/releases/tag/v0.58.3
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, qovery-cli
|
|
, testers
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "qovery-cli";
|
|
version = "0.58.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Qovery";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-1r0ssR5jTvPiR5snhJ+wROISFOz/qIHT51ZrVA+nW5w=";
|
|
};
|
|
|
|
vendorHash = "sha256-w40zewXGB76kMgP0GzUtyncBBnCDgxcGJ7EO107WWN0=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
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";
|
|
changelog = "https://github.com/Qovery/qovery-cli/releases/tag/v${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|