nixpkgs/pkgs/tools/misc/gh-dash/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
903 B
Nix
Raw Normal View History

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-01-22 08:42:29 +00:00
version = "3.12.0";
2022-07-27 20:07:40 +00:00
src = fetchFromGitHub {
owner = "dlvhdr";
repo = "gh-dash";
rev = "v${version}";
2024-01-22 08:42:29 +00:00
hash = "sha256-ijqEsjBNncrtg1DaVvwH2gxTgB3QOJCF1RxetnPBVII=";
2022-07-27 20:07:40 +00:00
};
2024-01-22 08:42:29 +00:00
vendorHash = "sha256-ezxwUfI8FevfeRmXN4Og9Gfw1GX9noagzWIg6GSPOPc=";
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
};
}