icu: Add meta.pkgConfigModules and test

This commit is contained in:
John Ericson 2023-02-12 14:23:58 -05:00
parent d0e7867130
commit fd34bbb0ad
2 changed files with 13 additions and 3 deletions

View file

@ -1,4 +1,6 @@
{ stdenv, lib, fetchurl, fetchpatch, fixDarwinDylibNames, nativeBuildRoot, buildRootOnly ? false }:
{ stdenv, lib, fetchurl, fetchpatch, fixDarwinDylibNames, nativeBuildRoot, testers
, buildRootOnly ? false
}:
import ./base.nix {
version = "63.1";
@ -11,4 +13,4 @@ import ./base.nix {
})
];
patchFlags = [ "-p3" ];
} { inherit stdenv lib fetchurl fixDarwinDylibNames nativeBuildRoot buildRootOnly; }
} { inherit stdenv lib fetchurl fixDarwinDylibNames nativeBuildRoot testers buildRootOnly; }

View file

@ -2,6 +2,7 @@
{ stdenv, lib, fetchurl, fixDarwinDylibNames
# Cross-compiled icu4c requires a build-root of a native compile
, buildRootOnly ? false, nativeBuildRoot
, testers
}:
let
@ -45,6 +46,11 @@ let
description = "Unicode and globalization support library";
homepage = "https://icu.unicode.org/";
maintainers = with maintainers; [ raskin ];
pkgConfigModules = [
"icu-i18n"
"icu-io"
"icu-uc"
];
platforms = platforms.all;
};
};
@ -97,4 +103,6 @@ let
then buildRootOnlyAttrs
else realAttrs;
in
stdenv.mkDerivation attrs
stdenv.mkDerivation (finalAttrs: attrs // {
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
})