yx: add version test
This commit is contained in:
parent
cbafb3b8b9
commit
b667423f97
1 changed files with 13 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue