depot/third_party/nixpkgs/pkgs/tools/misc/gh-dash/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

39 lines
903 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
, testers
, gh-dash
}:
buildGoModule rec {
pname = "gh-dash";
version = "3.11.0";
src = fetchFromGitHub {
owner = "dlvhdr";
repo = "gh-dash";
rev = "v${version}";
hash = "sha256-XvNc68pVwqBLthkr3jb578Avpnr1NKT1XWUD4aazBHw=";
};
vendorHash = "sha256-COPEgRqogRkGuJm56n9Cqljr7H8QT0RSKAdnXbHm+nw=";
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";
};
}