commit ab99c756d79f2b5eece17842750855cbdc42deb0
parent 07290e270702d4920062a21cf9eafd7674711f13
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Wed, 8 Feb 2023 06:55:50 +0300
Rename jenkins-cli to jcli
Diffstat:
3 files changed, 30 insertions(+), 26 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -315,7 +315,7 @@ lib.makeScope newScope (
how-to-use-pvs-studio-free = callPackage ./misc/pvs-studio/how-to-use-pvs-studio-free.nix { };
huami-token = callPackage ./misc/huami-token { };
ish = callPackage ./misc/ish { };
- jenkins-cli = callPackage ./misc/jenkins-cli { };
+ jcli = callPackage ./misc/jcli { };
lazyscraper = callPackage ./misc/lazyscraper { };
libmdbx = callPackage ./misc/libmdbx { };
libnbcompat = callPackage ./misc/libnbcompat { };
diff --git a/pkgs/misc/jcli/default.nix b/pkgs/misc/jcli/default.nix
@@ -0,0 +1,29 @@
+{ 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 = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}
diff --git a/pkgs/misc/jenkins-cli/default.nix b/pkgs/misc/jenkins-cli/default.nix
@@ -1,25 +0,0 @@
-{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
-
-buildGoModule rec {
- pname = "jenkins-cli";
- 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;
-
- meta = with lib; {
- description = "Jenkins CLI allows you to manage your Jenkins in an easy way";
- inherit (src.meta) homepage;
- license = licenses.mit;
- maintainers = [ maintainers.sikmir ];
- platforms = platforms.unix;
- };
-}