Commit 943781aa authored by figsoda's avatar figsoda
Browse files

ov: add version test

parent 7d042cde
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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";