2020-08-02 10:20:00 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, installShellFiles }:
|
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-11-02 08:04:05 +00:00
|
|
|
version = "2.1.149";
|
2019-03-06 00:52:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jenkins-x";
|
|
|
|
repo = "jx";
|
|
|
|
rev = "v${version}";
|
2020-11-02 08:04:05 +00:00
|
|
|
sha256 = "0jgny09wpfab8mkxkhv9swp1baqx3lxsx75a5i78cypkj6xadc69";
|
2019-03-06 00:52:57 +00:00
|
|
|
};
|
|
|
|
|
2020-11-02 08:04:05 +00:00
|
|
|
vendorSha256 = "1fswrf14nwjm0z8qqgdx236w7w1m451lyfinhx9pyp89fw2h5mv6";
|
2019-03-08 19:10:50 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-03-08 19:10:50 +00:00
|
|
|
subPackages = [ "cmd/jx" ];
|
2019-03-06 00:52:57 +00:00
|
|
|
|
2020-08-02 10:20:00 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2019-03-06 00:52:57 +00:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
2020-08-02 10:20:00 +01:00
|
|
|
-s -w
|
2019-03-08 19:10:50 +00:00
|
|
|
-X github.com/jenkins-x/jx/pkg/version.Version=${version}
|
2020-08-02 10:20:00 +01:00
|
|
|
-X github.com/jenkins-x/jx/pkg/version.Revision=${src.rev}
|
|
|
|
-X github.com/jenkins-x/jx/pkg/version.GitTreeState=clean
|
2019-03-06 00:52:57 +00:00
|
|
|
'';
|
|
|
|
|
2020-08-02 10:20:00 +01:00
|
|
|
postInstall = ''
|
|
|
|
for shell in bash zsh; do
|
|
|
|
$out/bin/jx completion $shell > jx.$shell
|
|
|
|
installShellCompletion jx.$shell
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "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;
|
|
|
|
};
|
|
|
|
}
|