2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
2023-02-22 10:55:15 +00:00
|
|
|
, testers
|
|
|
|
, gh-dash
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gh-dash";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "4.2.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dlvhdr";
|
|
|
|
repo = "gh-dash";
|
|
|
|
rev = "v${version}";
|
2024-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-9aXGNLaNXzDGJVTAXhOPt8XNxnWUpmiXCa60jsIUja8=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-JOd2czYWVgE1jBfeuoVRp+oE/asyk50o5Pf021jD5mY=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2024-06-24 18:47:55 +00:00
|
|
|
"-X github.com/dlvhdr/gh-dash/v4/cmd.Version=${version}"
|
2023-02-22 10:55:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion { package = gh-dash; };
|
|
|
|
};
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/dlvhdr/gh-dash/releases/tag/${src.rev}";
|
2023-08-04 22:07:22 +00:00
|
|
|
description = "Github Cli extension to display a dashboard with pull requests and issues";
|
|
|
|
homepage = "https://github.com/dlvhdr/gh-dash";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ amesgen ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "gh-dash";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|