diff options
author | Tom Wieczorek <tom@bibbu.net> | 2024-01-21 15:00:35 +0100 |
---|---|---|
committer | Tom Wieczorek <tom@bibbu.net> | 2024-01-27 22:36:49 +0100 |
commit | b667423f97f2b5ea088b82d18197ec71f2883121 (patch) | |
tree | 17aee7349bfbcb7d1cd8c090136fdeb23f1eb480 /pkgs/tools/text/yx | |
parent | cbafb3b8b9c6cf1d28b7edd6fe318750bd90a87d (diff) | |
download | nixlib-b667423f97f2b5ea088b82d18197ec71f2883121.tar nixlib-b667423f97f2b5ea088b82d18197ec71f2883121.tar.gz nixlib-b667423f97f2b5ea088b82d18197ec71f2883121.tar.bz2 nixlib-b667423f97f2b5ea088b82d18197ec71f2883121.tar.lz nixlib-b667423f97f2b5ea088b82d18197ec71f2883121.tar.xz nixlib-b667423f97f2b5ea088b82d18197ec71f2883121.tar.zst nixlib-b667423f97f2b5ea088b82d18197ec71f2883121.zip |
yx: add version test
Diffstat (limited to 'pkgs/tools/text/yx')
-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"; |