lol

libb2: Add `meta.pkgConfigModules` and test

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