yx: add version test

This commit is contained in:
Tom Wieczorek
2024-01-27 22:36:49 +01:00
parent cbafb3b8b9
commit b667423f97
+13 -1
View File
@@ -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";