libfyaml: add pkg-config tester

This commit is contained in:
Mario Rodas 2023-09-26 04:20:00 +00:00
parent caa9885f7c
commit d819d35ccd

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook }:
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, testers }:
stdenv.mkDerivation (finalAttrs: {
pname = "libfyaml";
@ -21,11 +21,16 @@ stdenv.mkDerivation (finalAttrs: {
patchShebangs test
'';
passthru.tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
};
meta = with lib; {
homepage = "https://github.com/pantoniou/libfyaml";
description = "Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
pkgConfigModules = [ "libfyaml" ];
platforms = platforms.all;
};
})