yx: add version test

This commit is contained in:
Tom Wieczorek 2024-01-21 15:00:35 +01:00
parent cbafb3b8b9
commit b667423f97
No known key found for this signature in database
GPG key ID: FE33A2282371E831

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";