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";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "3.7.7";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dlvhdr";
|
|
|
|
repo = "gh-dash";
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-Ih9Vdt/ds8f37n7onWhvfrgMrE2iXQPwSTgxrui5TYY=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
vendorHash = "sha256-ZpX+0AyHFWOb75jlIS5/BqKpRkqNpE4SkOJ01CqO/0w=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/dlvhdr/gh-dash/cmd.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion { package = gh-dash; };
|
|
|
|
};
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "gh extension to display a dashboard with pull requests and issues";
|
|
|
|
homepage = "https://github.com/dlvhdr/gh-dash";
|
|
|
|
changelog = "https://github.com/dlvhdr/gh-dash/releases/tag/${src.rev}";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ amesgen ];
|
|
|
|
};
|
|
|
|
}
|