From 63869a3e447f58ac2f28e2e045fd9ae7e009c93f Mon Sep 17 00:00:00 2001 From: Kiskae Date: Sun, 1 Oct 2023 20:31:01 +0200 Subject: [PATCH] yajl: enable included and pkg-config tests --- pkgs/development/libraries/yajl/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/yajl/default.nix b/pkgs/development/libraries/yajl/default.nix index 586171ae5c2b..dad884c24842 100644 --- a/pkgs/development/libraries/yajl/default.nix +++ b/pkgs/development/libraries/yajl/default.nix @@ -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 ]; }; -} +})