yajl: enable included and pkg-config tests
This commit is contained in:
parent
e8d14083e2
commit
63869a3e44
1 changed files with 11 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, which, testers }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "yajl";
|
||||
version = "unstable-2022-04-20";
|
||||
|
||||
|
@ -18,6 +18,13 @@ stdenv.mkDerivation {
|
|||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
doCheck = true;
|
||||
nativeCheckInputs = [ which ];
|
||||
|
||||
passthru = {
|
||||
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Yet Another JSON Library";
|
||||
longDescription = ''
|
||||
|
@ -26,7 +33,8 @@ stdenv.mkDerivation {
|
|||
'';
|
||||
homepage = "http://lloyd.github.com/yajl/";
|
||||
license = lib.licenses.isc;
|
||||
pkgConfigModules = [ "yajl" ];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
maintainers = with lib.maintainers; [ maggesi ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue