gh-dash: add version test

This commit is contained in:
amesgen 2023-02-17 20:16:20 +01:00
parent 364fd1883b
commit a48a5d6359
No known key found for this signature in database
GPG Key ID: 1A89EC203635A13D

View File

@ -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";