mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
rhoas: init at 0.51.7
This commit is contained in:
parent
f79febbc8c
commit
df2c438cec
46
pkgs/tools/admin/rhoas/default.nix
Normal file
46
pkgs/tools/admin/rhoas/default.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, rhoas }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "rhoas";
|
||||
version = "0.51.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "redhat-developer";
|
||||
repo = "app-services-cli";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-sgAr9v3nkMZ8linvR5AhYZV0NQuVqMnueGOo/KLqPc0=";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/redhat-developer/app-services-cli/internal/build.Version=${version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [installShellFiles];
|
||||
|
||||
# Networking tests fail.
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd rhoas \
|
||||
--bash <($out/bin/rhoas completion bash) \
|
||||
--fish <($out/bin/rhoas completion fish) \
|
||||
--zsh <($out/bin/rhoas completion zsh)
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = rhoas;
|
||||
command = "HOME=$TMP rhoas version";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command Line Interface for Red Hat OpenShift Application Services";
|
||||
license = licenses.asl20;
|
||||
homepage = "https://github.com/redhat-developer/app-services-cli";
|
||||
changelog = "https://github.com/redhat-developer/app-services-cli/releases/v${version}";
|
||||
maintainers = with maintainers; [stehessel];
|
||||
};
|
||||
}
|
@ -11050,6 +11050,8 @@ with pkgs;
|
||||
|
||||
rhash = callPackage ../tools/security/rhash { };
|
||||
|
||||
rhoas = callPackage ../tools/admin/rhoas { };
|
||||
|
||||
riemann_c_client = callPackage ../tools/misc/riemann-c-client { };
|
||||
riemann-tools = callPackage ../tools/misc/riemann-tools { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user