3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/jx/default.nix

37 lines
1 KiB
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
2019-03-06 00:52:57 +00:00
buildGoModule rec {
2020-05-11 07:04:58 +01:00
pname = "jx";
2020-06-14 19:27:05 +01:00
version = "2.1.65";
2019-03-06 00:52:57 +00:00
src = fetchFromGitHub {
owner = "jenkins-x";
repo = "jx";
rev = "v${version}";
2020-06-14 19:27:05 +01:00
sha256 = "0zkp0z5qpqw44bjnl20xna7s251k7jsxccqnqkdqqrzmqjpkkwgx";
2019-03-06 00:52:57 +00:00
};
2020-06-14 19:27:05 +01:00
vendorSha256 = "0zi2n8fywzy87yfwcx7di74s8mx0468zmg6kwjln7mwhr6q23adf";
subPackages = [ "cmd/jx" ];
2019-03-06 00:52:57 +00:00
buildFlagsArray = ''
-ldflags=
-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; {
2019-03-06 00:52:57 +00:00
description = "JX is a command line tool for installing and using Jenkins X.";
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;
};
}