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