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 22:07:40 +02:00
{ lib
, fetchFromGitHub
, buildGoModule
2023-02-17 20:16:20 +01:00
, testers
, gh-dash
2022-07-27 22:07:40 +02:00
}:
buildGoModule rec {
pname = "gh-dash";
2023-08-26 12:26:44 +02:00
version = "3.11.0";
2022-07-27 22:07:40 +02:00
src = fetchFromGitHub {
owner = "dlvhdr";
repo = "gh-dash";
rev = "v${version}";
2023-08-26 12:26:44 +02:00
hash = "sha256-XvNc68pVwqBLthkr3jb578Avpnr1NKT1XWUD4aazBHw=";
2022-07-27 22:07:40 +02:00
};
2023-08-26 12:26:44 +02:00
vendorHash = "sha256-COPEgRqogRkGuJm56n9Cqljr7H8QT0RSKAdnXbHm+nw=";
2022-07-27 22:07:40 +02:00
2023-02-17 20:16:20 +01:00
ldflags = [
"-s"
"-w"
"-X github.com/dlvhdr/gh-dash/cmd.Version=${version}"
];
passthru.tests = {
version = testers.testVersion { package = gh-dash; };
};
2022-07-27 22:07:40 +02:00
meta = {
changelog = "https://github.com/dlvhdr/gh-dash/releases/tag/${src.rev}";
2023-07-29 20:50:30 +02:00
description = "Github Cli extension to display a dashboard with pull requests and issues";
homepage = "https://github.com/dlvhdr/gh-dash";
2022-07-27 22:07:40 +02:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ amesgen ];
2023-11-27 02:17:53 +01:00
mainProgram = "gh-dash";
2022-07-27 22:07:40 +02:00
};
}