diff options
-rw-r--r-- | pkgs/tools/text/yx/default.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/tools/text/yx/default.nix b/pkgs/tools/text/yx/default.nix index b3098fb6dcc4..ec308bcfbad2 100644 --- a/pkgs/tools/text/yx/default.nix +++ b/pkgs/tools/text/yx/default.nix @@ -1,4 +1,10 @@ -{ lib, stdenv, fetchFromGitLab, libyaml }: +{ lib +, stdenv +, fetchFromGitLab +, libyaml +, testers +, yx +}: stdenv.mkDerivation rec { pname = "yx"; version = "1.0.0"; @@ -20,6 +26,12 @@ stdenv.mkDerivation rec { doCheck = true; + passthru.tests.version = testers.testVersion { + package = yx; + command = "${meta.mainProgram} -v"; + version = "v${yx.version}"; + }; + meta = with lib; { description = "YAML Data Extraction Tool"; homepage = "https://gitlab.com/tomalok/yx"; |