about summary refs log tree commit diff
path: root/pkgs/tools/text/yx
diff options
context:
space:
mode:
authorTom Wieczorek <tom@bibbu.net>2024-01-21 15:00:35 +0100
committerTom Wieczorek <tom@bibbu.net>2024-01-27 22:36:49 +0100
commitb667423f97f2b5ea088b82d18197ec71f2883121 (patch)
tree17aee7349bfbcb7d1cd8c090136fdeb23f1eb480 /pkgs/tools/text/yx
parentcbafb3b8b9c6cf1d28b7edd6fe318750bd90a87d (diff)
downloadnixlib-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.nix14
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";