2022-07-27 20:07:40 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
2023-02-17 19:16:20 +00:00
|
|
|
, testers
|
|
|
|
, gh-dash
|
2022-07-27 20:07:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gh-dash";
|
2024-02-20 03:51:26 +00:00
|
|
|
version = "3.14.0";
|
2022-07-27 20:07:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dlvhdr";
|
|
|
|
repo = "gh-dash";
|
|
|
|
rev = "v${version}";
|
2024-02-20 03:51:26 +00:00
|
|
|
hash = "sha256-6YPUGOQ2KBfu+3XAgub9Cpz0QBrU2kV+gq13tUtzY+w=";
|
2022-07-27 20:07:40 +00:00
|
|
|
};
|
|
|
|
|
2024-02-16 18:16:53 +00:00
|
|
|
vendorHash = "sha256-jCf9FWAhZK5hTzyy8N4r5dfUYTgESmsn8iKxCccgWiM=";
|
2022-07-27 20:07:40 +00:00
|
|
|
|
2023-02-17 19:16:20 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/dlvhdr/gh-dash/cmd.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion { package = gh-dash; };
|
|
|
|
};
|
2022-07-27 20:07:40 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/dlvhdr/gh-dash/releases/tag/${src.rev}";
|
2023-07-29 18:50:30 +00:00
|
|
|
description = "Github Cli extension to display a dashboard with pull requests and issues";
|
|
|
|
homepage = "https://github.com/dlvhdr/gh-dash";
|
2022-07-27 20:07:40 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ amesgen ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "gh-dash";
|
2022-07-27 20:07:40 +00:00
|
|
|
};
|
|
|
|
}
|