lol

icu: Add `meta.pkgConfigModules` and test

+13 -3
+4 -2
pkgs/development/libraries/icu/63.nix
··· 1 - { stdenv, lib, fetchurl, fetchpatch, fixDarwinDylibNames, nativeBuildRoot, buildRootOnly ? false }: 1 + { stdenv, lib, fetchurl, fetchpatch, fixDarwinDylibNames, nativeBuildRoot, testers 2 + , buildRootOnly ? false 3 + }: 2 4 3 5 import ./base.nix { 4 6 version = "63.1"; ··· 11 13 }) 12 14 ]; 13 15 patchFlags = [ "-p3" ]; 14 - } { inherit stdenv lib fetchurl fixDarwinDylibNames nativeBuildRoot buildRootOnly; } 16 + } { inherit stdenv lib fetchurl fixDarwinDylibNames nativeBuildRoot testers buildRootOnly; }
+9 -1
pkgs/development/libraries/icu/base.nix
··· 2 2 { stdenv, lib, fetchurl, fixDarwinDylibNames 3 3 # Cross-compiled icu4c requires a build-root of a native compile 4 4 , buildRootOnly ? false, nativeBuildRoot 5 + , testers 5 6 }: 6 7 7 8 let ··· 45 46 description = "Unicode and globalization support library"; 46 47 homepage = "https://icu.unicode.org/"; 47 48 maintainers = with maintainers; [ raskin ]; 49 + pkgConfigModules = [ 50 + "icu-i18n" 51 + "icu-io" 52 + "icu-uc" 53 + ]; 48 54 platforms = platforms.all; 49 55 }; 50 56 }; ··· 97 103 then buildRootOnlyAttrs 98 104 else realAttrs; 99 105 in 100 - stdenv.mkDerivation attrs 106 + stdenv.mkDerivation (finalAttrs: attrs // { 107 + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 108 + })