uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/applications/networking/cluster/jx/default.nix
Normal file
49
pkgs/applications/networking/cluster/jx/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ stdenv, buildGoModule, fetchFromGitHub, lib, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "jx";
|
||||
version = "2.1.155";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jenkins-x";
|
||||
repo = "jx";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-kwcmZSOA26XuSgNSHitGaMohalnLobabXf4z3ybSJtk=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-ZtcCBXcJXX9ThzY6T0MhNfDDzRC9PYzRB1VyS4LLXLs=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
subPackages = [ "cmd/jx" ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
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"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
for shell in bash zsh; do
|
||||
$out/bin/jx completion $shell > jx.$shell
|
||||
installShellCompletion jx.$shell
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "Command line tool for installing and using Jenkins X";
|
||||
homepage = "https://jenkins-x.io";
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue