From 00b5e39534f0263802b4778bdc61b6a1f1c7410c Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sun, 12 Feb 2023 22:09:50 +0300 Subject: [PATCH] jcli: init at 0.0.41 --- pkgs/development/tools/misc/jcli/default.nix | 28 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/tools/misc/jcli/default.nix diff --git a/pkgs/development/tools/misc/jcli/default.nix b/pkgs/development/tools/misc/jcli/default.nix new file mode 100644 index 000000000000..5973ffd5534b --- /dev/null +++ b/pkgs/development/tools/misc/jcli/default.nix @@ -0,0 +1,28 @@ +{ lib, buildGoModule, fetchFromGitHub, fetchpatch }: + +buildGoModule rec { + pname = "jcli"; + version = "0.0.41"; + + src = fetchFromGitHub { + owner = "jenkins-zh"; + repo = "jenkins-cli"; + rev = "v${version}"; + hash = "sha256-oZtbjfquCYMMYgKe7sclRQDXnkNwAEY/GvwenGBnVk4="; + }; + + 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"; + homepage = "https://jcli.jenkins-zh.cn/"; + license = licenses.mit; + maintainers = with maintainers; [ sikmir ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 83d4fcfee835..fdf70f16e225 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8570,6 +8570,8 @@ with pkgs; jc = with python3Packages; toPythonApplication jc; + jcli = callPackage ../development/tools/misc/jcli { }; + jd-cli = callPackage ../tools/security/jd-cli { }; jd-diff-patch = callPackage ../development/tools/jd-diff-patch { };