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";
|
2023-07-29 18:50:30 +00:00
|
|
|
version = "3.10.0";
|
2022-07-27 20:07:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dlvhdr";
|
|
|
|
repo = "gh-dash";
|
|
|
|
rev = "v${version}";
|
2023-07-29 18:50:30 +00:00
|
|
|
hash = "sha256-ypYM/FXp+BObR2fjVCV8nDJhRuuu2Y7213haAJnzRIE=";
|
2022-07-27 20:07:40 +00:00
|
|
|
};
|
|
|
|
|
2023-07-12 04:16:42 +00:00
|
|
|
vendorHash = "sha256-lOIONv+7cUUC0mGCwYkOkDn3zHreYpFeqmTbp2Ob3yM=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|