2020-08-02 02:20:00 -07:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, installShellFiles }:
|
2019-03-05 16:52:57 -08:00
|
|
|
|
2019-03-08 11:10:50 -08:00
|
|
|
buildGoModule rec {
|
2020-05-10 23:04:58 -07:00
|
|
|
pname = "jx";
|
2020-08-01 20:59:22 -07:00
|
|
|
version = "2.1.121";
|
2019-03-05 16:52:57 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jenkins-x";
|
|
|
|
repo = "jx";
|
|
|
|
rev = "v${version}";
|
2020-08-01 20:59:22 -07:00
|
|
|
sha256 = "0bjpnh962w5wz4gj5my9g52dawxj8zccvpkxlxy1n7c3dkzjxx5j";
|
2019-03-05 16:52:57 -08:00
|
|
|
};
|
|
|
|
|
2020-08-01 20:59:22 -07:00
|
|
|
vendorSha256 = "0l9djgvnrgdnw7nsf05yq7qpzzzm3gasgh9a7dyc16pp2kxvza6k";
|
2019-03-08 11:10:50 -08:00
|
|
|
|
|
|
|
subPackages = [ "cmd/jx" ];
|
2019-03-05 16:52:57 -08:00
|
|
|
|
2020-08-02 02:20:00 -07:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2019-03-05 16:52:57 -08:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
2019-03-08 11:10:50 -08:00
|
|
|
-X github.com/jenkins-x/jx/pkg/version.Version=${version}
|
|
|
|
-X github.com/jenkins-x/jx/pkg/version.Revision=${version}
|
2019-03-05 16:52:57 -08:00
|
|
|
'';
|
|
|
|
|
2020-08-02 02:20:00 -07:00
|
|
|
postInstall = ''
|
|
|
|
for shell in bash zsh; do
|
|
|
|
$out/bin/jx completion $shell > jx.$shell
|
|
|
|
installShellCompletion jx.$shell
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2020-03-27 00:33:21 -07:00
|
|
|
meta = with lib; {
|
2019-03-05 16:52:57 -08:00
|
|
|
description = "JX is a command line tool for installing and using Jenkins X.";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://jenkins-x.io";
|
2019-03-05 16:52:57 -08:00
|
|
|
longDescription = ''
|
|
|
|
Jenkins X provides automated CI+CD for Kubernetes with Preview
|
|
|
|
Environments on Pull Requests using Jenkins, Knative Build, Prow,
|
|
|
|
Skaffold and Helm.
|
|
|
|
'';
|
|
|
|
license = licenses.asl20 ;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|