depot/third_party/nixpkgs/pkgs/tools/misc/gh-dash/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

39 lines
902 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
, testers
, gh-dash
}:
buildGoModule rec {
pname = "gh-dash";
version = "4.1.2";
src = fetchFromGitHub {
owner = "dlvhdr";
repo = "gh-dash";
rev = "v${version}";
hash = "sha256-crMlld0Lrfy/MPjQd071azRpvdII8aC2nbSRxBxYu+U=";
};
vendorHash = "sha256-JOd2czYWVgE1jBfeuoVRp+oE/asyk50o5Pf021jD5mY=";
ldflags = [
"-s"
"-w"
"-X github.com/dlvhdr/gh-dash/cmd.Version=${version}"
];
passthru.tests = {
version = testers.testVersion { package = gh-dash; };
};
meta = {
changelog = "https://github.com/dlvhdr/gh-dash/releases/tag/${src.rev}";
description = "Github Cli extension to display a dashboard with pull requests and issues";
homepage = "https://github.com/dlvhdr/gh-dash";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ amesgen ];
mainProgram = "gh-dash";
};
}