jira-cli-go: init at 0.3.0 (#173440)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
9c03535bdd
commit
0923087921
44
pkgs/development/tools/jira-cli-go/default.nix
Normal file
44
pkgs/development/tools/jira-cli-go/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{ lib, buildGoModule, fetchFromGitHub, less, more, installShellFiles, testVersion, jira-cli-go }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "jira-cli-go";
|
||||||
|
version = "0.3.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ankitpokhrel";
|
||||||
|
repo = "jira-cli";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-sPoFv3Gzue5H6TJuQZJvqB/Dx/URp9Kt2UuIvKSnAxg=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-UO30/D65vpu3PgEsfSDL3nYgkwo5Cj+1WKiokk7KKKg=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s" "-w"
|
||||||
|
"-X github.com/ankitpokhrel/jira-cli/internal/version.GitCommit=${src.rev}"
|
||||||
|
"-X github.com/ankitpokhrel/jira-cli/internal/version.SourceDateEpoch=0"
|
||||||
|
"-X github.com/ankitpokhrel/jira-cli/internal/version.Version=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [ less more ]; # Tests expect a pager in $PATH
|
||||||
|
|
||||||
|
passthru.tests.version = testVersion {
|
||||||
|
package = jira-cli-go;
|
||||||
|
command = "jira version";
|
||||||
|
inherit version;
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd jira \
|
||||||
|
--bash <($out/bin/jira completion bash) \
|
||||||
|
--zsh <($out/bin/jira completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Feature-rich interactive Jira command line";
|
||||||
|
homepage = "https://github.com/ankitpokhrel/jira-cli";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ bryanasdev000 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7277,6 +7277,8 @@ with pkgs;
|
||||||
|
|
||||||
jira-cli = callPackage ../development/tools/jira_cli { };
|
jira-cli = callPackage ../development/tools/jira_cli { };
|
||||||
|
|
||||||
|
jira-cli-go = callPackage ../development/tools/jira-cli-go { };
|
||||||
|
|
||||||
jirafeau = callPackage ../servers/web-apps/jirafeau { };
|
jirafeau = callPackage ../servers/web-apps/jirafeau { };
|
||||||
|
|
||||||
jitterentropy = callPackage ../development/libraries/jitterentropy { };
|
jitterentropy = callPackage ../development/libraries/jitterentropy { };
|
||||||
|
|
Loading…
Reference in a new issue