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

brotli: Add `meta.pkgConfigModules` and test

+10 -3
+10 -3
pkgs/tools/compression/brotli/default.nix
··· 4 4 , cmake 5 5 , fetchpatch 6 6 , staticOnly ? stdenv.hostPlatform.isStatic 7 + , testers 7 8 }: 8 9 9 10 # ?TODO: there's also python lib in there 10 11 11 - stdenv.mkDerivation rec { 12 + stdenv.mkDerivation (finalAttrs: { 12 13 pname = "brotli"; 13 14 version = "1.0.9"; 14 15 15 16 src = fetchFromGitHub { 16 17 owner = "google"; 17 18 repo = "brotli"; 18 - rev = "v${version}"; 19 + rev = "v${finalAttrs.version}"; 19 20 sha256 = "z6Dhrabav1MDQ4rAcXaDv0aN+qOoh9cvoXZqEWBB13c="; 20 21 }; 21 22 ··· 55 56 cp ../docs/*.3 $out/share/man/man3/ 56 57 ''; 57 58 59 + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 60 + 58 61 meta = with lib; { 59 62 homepage = "https://github.com/google/brotli"; 60 63 description = "A generic-purpose lossless compression algorithm and tool"; ··· 72 75 ''; 73 76 license = licenses.mit; 74 77 maintainers = with maintainers; [ freezeboy ]; 78 + pkgConfigModules = [ 79 + "libbrotlidec" 80 + "libbrotlienc" 81 + ]; 75 82 platforms = platforms.all; 76 83 }; 77 - } 84 + })