2020-03-27 07:33:21 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2019-03-06 00:52:57 +00:00
|
|
|
|
2019-03-08 19:10:50 +00:00
|
|
|
buildGoModule rec {
|
2020-05-11 07:04:58 +01:00
|
|
|
pname = "jx";
|
2020-07-07 00:39:20 +01:00
|
|
|
version = "2.1.90";
|
2019-03-06 00:52:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jenkins-x";
|
|
|
|
repo = "jx";
|
|
|
|
rev = "v${version}";
|
2020-07-07 00:39:20 +01:00
|
|
|
sha256 = "1m2gq1hh8fjgxwx2sipq56q5mlz0m3npnbsw103n2kq4xv1qf3f6";
|
2019-03-06 00:52:57 +00:00
|
|
|
};
|
|
|
|
|
2020-07-07 00:39:20 +01:00
|
|
|
vendorSha256 = "0kj6x7323fx1qhrlg789a21mh1fvhil7ng2fhmbmlwq0fcrngdnj";
|
2019-03-08 19:10:50 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/jx" ];
|
2019-03-06 00:52:57 +00:00
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
2019-03-08 19:10:50 +00:00
|
|
|
-X github.com/jenkins-x/jx/pkg/version.Version=${version}
|
|
|
|
-X github.com/jenkins-x/jx/pkg/version.Revision=${version}
|
2019-03-06 00:52:57 +00:00
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-03-06 00:52:57 +00:00
|
|
|
description = "JX is a command line tool for installing and using Jenkins X.";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://jenkins-x.io";
|
2019-03-06 00:52:57 +00: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;
|
|
|
|
};
|
|
|
|
}
|