libb2: Add `meta.pkgConfigModules` and test

+7 -3
+7 -3
pkgs/development/libraries/libb2/default.nix
··· 4 4 , autoreconfHook 5 5 , libtool 6 6 , pkg-config 7 + , testers 7 8 }: 8 9 9 - stdenv.mkDerivation rec { 10 + stdenv.mkDerivation (finalAttrs: { 10 11 pname = "libb2"; 11 12 version = "0.98.1"; 12 13 13 14 src = fetchFromGitHub { 14 15 owner = "BLAKE2"; 15 16 repo = "libb2"; 16 - rev = "refs/tags/v${version}"; 17 + rev = "refs/tags/v${finalAttrs.version}"; 17 18 sha256 = "0qj8aaqvfcavj1vj5asm4pqm03ap7q8x4c2fy83cqggvky0frgya"; 18 19 }; 19 20 ··· 29 30 30 31 doCheck = true; 31 32 33 + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 34 + 32 35 meta = with lib; { 33 36 description = "The BLAKE2 family of cryptographic hash functions"; 34 37 homepage = "https://blake2.net/"; 38 + pkgConfigModules = [ "libb2" ]; 35 39 platforms = platforms.all; 36 40 maintainers = with maintainers; [ dfoxfranke dotlambda ]; 37 41 license = licenses.cc0; 38 42 }; 39 - } 43 + })