gh-dash: add version test
This commit is contained in:
parent
364fd1883b
commit
a48a5d6359
@ -1,6 +1,8 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
, testers
|
||||
, gh-dash
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@ -16,7 +18,15 @@ buildGoModule rec {
|
||||
|
||||
vendorHash = "sha256-66GxD48fCWUWMyZ3GiivWNtz0mgI4JHMcvNwHGFTRfU=";
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user