2022-07-27 21:07:40 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
2023-02-17 19:16:20 +00:00
|
|
|
, testers
|
|
|
|
, gh-dash
|
2022-07-27 21:07:40 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gh-dash";
|
2023-02-17 19:11:46 +00:00
|
|
|
version = "3.7.6";
|
2022-07-27 21:07:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dlvhdr";
|
|
|
|
repo = "gh-dash";
|
|
|
|
rev = "v${version}";
|
2023-02-17 19:11:46 +00:00
|
|
|
hash = "sha256-EYDSfxFOnMuPDZaG1CYQtYLNe6afm/2YYlQPheAKXDg=";
|
2022-07-27 21:07:40 +01:00
|
|
|
};
|
|
|
|
|
2023-01-18 20:07:37 +00:00
|
|
|
vendorHash = "sha256-66GxD48fCWUWMyZ3GiivWNtz0mgI4JHMcvNwHGFTRfU=";
|
2022-07-27 21:07:40 +01: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 21:07:40 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|