blob: 9d71c2070708291a0b9769e2e10deca609ef6d6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ stdenv, buildGoModule, fetchFromGitHub, lib, nix-update-script, go }:
buildGoModule rec {
pname = "jx";
version = "3.10.154";
src = fetchFromGitHub {
owner = "jenkins-x";
repo = "jx";
rev = "v${version}";
sha256 = "sha256-BrCErGsHJq9h2AijwhG8MwCxXGJ9sCDpCOqazsmi8hs=";
};
vendorHash = "sha256-AIaZVkWdNj1Vsrv2k4B5lLE0lOFuiTD7lwS/DikmC14=";
subPackages = [ "cmd" ];
CGO_ENABLED = 0;
ldflags = [
"-s"
"-X github.com/jenkins-x/jx/pkg/cmd/version.Version=${version}"
"-X github.com/jenkins-x/jx/pkg/cmd/version.Revision=${src.rev}"
"-X github.com/jenkins-x/jx/pkg/cmd/version.GoVersion=${go.version}"
"-X github.com/jenkins-x/jx/pkg/cmd/version.GitTreeState=clean"
"-X github.com/jenkins-x/jx/pkg/cmd/version.BuildDate=''"
];
postInstall = ''
mv $out/bin/cmd $out/bin/jx
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
broken = stdenv.isDarwin;
description = "Command line tool for installing and using Jenkins X";
mainProgram = "jx";
homepage = "https://jenkins-x.io";
changelog = "https://github.com/jenkins-x/jx/releases/tag/v${version}";
longDescription = ''
Jenkins X provides automated CI+CD for Kubernetes with Preview
Environments on Pull Requests using using Cloud Native pipelines
from Tekton.
'';
license = licenses.asl20;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}
|