3
0
Fork 0
forked from mirrors/nixpkgs

ov: add version test

This commit is contained in:
figsoda 2023-06-01 23:04:12 -04:00
parent 7d042cde84
commit 943781aa98

View file

@ -4,6 +4,8 @@
, installShellFiles
, pandoc
, makeWrapper
, testers
, ov
}:
buildGoModule rec {
@ -52,6 +54,13 @@ buildGoModule rec {
cp $src/ov.yaml $doc/share/$name/sample-config.yaml
'';
passthru.tests = {
version = testers.testVersion {
package = ov;
version = "v${version}";
};
};
meta = with lib; {
description = "Feature-rich terminal-based text viewer";
homepage = "https://noborus.github.io/ov";