2024-06-05 15:53:02 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "jcli";
|
|
|
|
version = "0.0.42";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jenkins-zh";
|
|
|
|
repo = "jenkins-cli";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-t9NE911TjAvoCsmf9F989DNQ+s9GhgUF7cwuyHefWts=";
|
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-bmPnxFvdKU5zuMsCDboSOxP5f7NnMRwS/gN0sW7eTRA=";
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/{jenkins-cli,jcli}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Jenkins CLI allows you to manage your Jenkins in an easy way";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jcli";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://jcli.jenkins-zh.cn/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
};
|
|
|
|
}
|