13 src = fetchFromGitHub {
17 hash = "sha256-t9NE911TjAvoCsmf9F989DNQ+s9GhgUF7cwuyHefWts=";
20 vendorHash = "sha256-bmPnxFvdKU5zuMsCDboSOxP5f7NnMRwS/gN0sW7eTRA=";
25 "-X github.com/linuxsuren/cobra-extension/version.version=${version}"
30 nativeBuildInputs = [ installShellFiles ];
34 mv $out/bin/{jenkins-cli,jcli}
36 + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
37 installShellCompletion --cmd jcli \
38 --bash <($out/bin/jcli completion --type bash) \
39 --zsh <($out/bin/jcli completion --type zsh)
43 description = "Jenkins CLI allows you to manage your Jenkins in an easy way";
45 homepage = "https://github.com/jenkins-zh/jenkins-cli";
46 changelog = "https://github.com/jenkins-zh/jenkins-cli/releases/tag/${src.rev}";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ sikmir ];