Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

yajl: enable included and pkg-config tests

authored by Kiskae and committed by Alyssa Ross 63869a3e e8d14083

+11 -3
+11 -3
pkgs/development/libraries/yajl/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake }: 1 + { lib, stdenv, fetchFromGitHub, cmake, which, testers }: 2 2 3 - stdenv.mkDerivation { 3 + stdenv.mkDerivation (finalAttrs: { 4 4 pname = "yajl"; 5 5 version = "unstable-2022-04-20"; 6 6 ··· 18 18 19 19 nativeBuildInputs = [ cmake ]; 20 20 21 + doCheck = true; 22 + nativeCheckInputs = [ which ]; 23 + 24 + passthru = { 25 + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 26 + }; 27 + 21 28 meta = { 22 29 description = "Yet Another JSON Library"; 23 30 longDescription = '' ··· 26 33 ''; 27 34 homepage = "http://lloyd.github.com/yajl/"; 28 35 license = lib.licenses.isc; 36 + pkgConfigModules = [ "yajl" ]; 29 37 platforms = with lib.platforms; linux ++ darwin; 30 38 maintainers = with lib.maintainers; [ maggesi ]; 31 39 }; 32 - } 40 + })