mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
jira-cli-go: migrate to pkgs/by-name, format with nixfmt-rfc-style
This commit is contained in:
parent
91beb4b016
commit
6b6cffe125
@ -1,4 +1,15 @@
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub, less, more, installShellFiles, testers, jira-cli-go, nix-update-script }:
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
jira-cli-go,
|
||||
less,
|
||||
more,
|
||||
nix-update-script,
|
||||
testers,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "jira-cli-go";
|
||||
@ -7,33 +18,22 @@ buildGoModule rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "ankitpokhrel";
|
||||
repo = "jira-cli";
|
||||
rev = "v${version}";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-edytj9hB8lDwy3qGSyLudu5G4DSRGKhD0vDoWz5eUgs=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-DAdzbANqr0fa4uO8k/yJFoirgbZiKOQhOH8u8d+ncao=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-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}"
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
nativeCheckInputs = [ less more ]; # Tests expect a pager in $PATH
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion {
|
||||
package = jira-cli-go;
|
||||
command = "jira version";
|
||||
inherit version;
|
||||
};
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd jira \
|
||||
--bash <($out/bin/jira completion bash) \
|
||||
@ -44,12 +44,31 @@ buildGoModule rec {
|
||||
installManPage man/*
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
less
|
||||
more
|
||||
]; # Tests expect a pager in $PATH
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion {
|
||||
package = jira-cli-go;
|
||||
command = "jira version";
|
||||
inherit version;
|
||||
};
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Feature-rich interactive Jira command line";
|
||||
homepage = "https://github.com/ankitpokhrel/jira-cli";
|
||||
changelog = "https://github.com/ankitpokhrel/jira-cli/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bryanasdev000 anthonyroussel ];
|
||||
maintainers = with maintainers; [
|
||||
bryanasdev000
|
||||
anthonyroussel
|
||||
];
|
||||
mainProgram = "jira";
|
||||
};
|
||||
}
|
@ -8918,8 +8918,6 @@ with pkgs;
|
||||
jdk_headless = jdk8_headless; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
||||
};
|
||||
|
||||
jira-cli-go = callPackage ../development/tools/jira-cli-go { };
|
||||
|
||||
jirafeau = callPackage ../servers/web-apps/jirafeau { };
|
||||
|
||||
jitterentropy = callPackage ../development/libraries/jitterentropy { };
|
||||
|
Loading…
Reference in New Issue
Block a user