2022-05-28 13:28:44 +00:00
|
|
|
{ stdenv, 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 06:04:58 +00:00
|
|
|
pname = "jx";
|
2021-01-19 01:44:30 +00:00
|
|
|
version = "2.1.155";
|
2019-03-06 00:52:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jenkins-x";
|
|
|
|
repo = "jx";
|
|
|
|
rev = "v${version}";
|
2021-01-19 01:44:30 +00:00
|
|
|
sha256 = "sha256-kwcmZSOA26XuSgNSHitGaMohalnLobabXf4z3ybSJtk=";
|
2019-03-06 00:52:57 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-ZtcCBXcJXX9ThzY6T0MhNfDDzRC9PYzRB1VyS4LLXLs=";
|
2019-03-08 19:10:50 +00:00
|
|
|
|
2020-08-04 00:26:27 +00: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 09:20:00 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s -w"
|
|
|
|
"-X github.com/jenkins-x/jx/pkg/version.Version=${version}"
|
|
|
|
"-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 09:20:00 +00: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; {
|
2022-05-28 13:28:44 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "Command line tool for installing and using Jenkins X";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "jx";
|
2020-04-01 01:11:51 +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;
|
|
|
|
};
|
|
|
|
}
|