38 lines
865 B
Nix
38 lines
865 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
, testers
|
|
, gh-dash
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gh-dash";
|
|
version = "3.7.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dlvhdr";
|
|
repo = "gh-dash";
|
|
rev = "v${version}";
|
|
hash = "sha256-nt/HJGWdDMolJJzuOpKZ7USgzmq7gJIeHGTzSnkXdzw=";
|
|
};
|
|
|
|
vendorHash = "sha256-F/T4VU9FhztGEl7bpbAr8CIA4LInen5q/Y3ycBIHJV0=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/dlvhdr/gh-dash/cmd.Version=${version}"
|
|
];
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion { package = gh-dash; };
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|