2019-03-08 19:10:50 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2019-03-06 00:52:57 +00:00
|
|
|
|
2019-03-08 19:10:50 +00:00
|
|
|
buildGoModule rec {
|
2019-03-06 00:52:57 +00:00
|
|
|
name = "jx";
|
2019-03-08 19:10:50 +00:00
|
|
|
version = "1.3.967";
|
2019-03-06 00:52:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jenkins-x";
|
|
|
|
repo = "jx";
|
|
|
|
rev = "v${version}";
|
2019-03-08 19:10:50 +00:00
|
|
|
sha256 = "0a25m7sz134kch21bg6l86kvwl4cg6babqf57kqidq6kid1zgdaq";
|
2019-03-06 00:52:57 +00:00
|
|
|
};
|
|
|
|
|
2019-03-08 19:10:50 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/jenkins-x/jx/pull/3321
|
|
|
|
./3321-fix-location-of-thrift.patch
|
|
|
|
];
|
|
|
|
|
2019-03-22 03:40:07 +00:00
|
|
|
modSha256 = "0ljf0c0c3pc12nmhdbrwflcaj6hs8igzjw5hi6fyhi6n9cy87vac";
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "JX is a command line tool for installing and using Jenkins X.";
|
2019-03-08 19:10:50 +00: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;
|
|
|
|
};
|
|
|
|
}
|