icu: Add meta.pkgConfigModules
and test
This commit is contained in:
parent
d0e7867130
commit
fd34bbb0ad
|
@ -1,4 +1,6 @@
|
||||||
{ stdenv, lib, fetchurl, fetchpatch, fixDarwinDylibNames, nativeBuildRoot, buildRootOnly ? false }:
|
{ stdenv, lib, fetchurl, fetchpatch, fixDarwinDylibNames, nativeBuildRoot, testers
|
||||||
|
, buildRootOnly ? false
|
||||||
|
}:
|
||||||
|
|
||||||
import ./base.nix {
|
import ./base.nix {
|
||||||
version = "63.1";
|
version = "63.1";
|
||||||
|
@ -11,4 +13,4 @@ import ./base.nix {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
patchFlags = [ "-p3" ];
|
patchFlags = [ "-p3" ];
|
||||||
} { inherit stdenv lib fetchurl fixDarwinDylibNames nativeBuildRoot buildRootOnly; }
|
} { inherit stdenv lib fetchurl fixDarwinDylibNames nativeBuildRoot testers buildRootOnly; }
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
{ stdenv, lib, fetchurl, fixDarwinDylibNames
|
{ stdenv, lib, fetchurl, fixDarwinDylibNames
|
||||||
# Cross-compiled icu4c requires a build-root of a native compile
|
# Cross-compiled icu4c requires a build-root of a native compile
|
||||||
, buildRootOnly ? false, nativeBuildRoot
|
, buildRootOnly ? false, nativeBuildRoot
|
||||||
|
, testers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -45,6 +46,11 @@ let
|
||||||
description = "Unicode and globalization support library";
|
description = "Unicode and globalization support library";
|
||||||
homepage = "https://icu.unicode.org/";
|
homepage = "https://icu.unicode.org/";
|
||||||
maintainers = with maintainers; [ raskin ];
|
maintainers = with maintainers; [ raskin ];
|
||||||
|
pkgConfigModules = [
|
||||||
|
"icu-i18n"
|
||||||
|
"icu-io"
|
||||||
|
"icu-uc"
|
||||||
|
];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -97,4 +103,6 @@ let
|
||||||
then buildRootOnlyAttrs
|
then buildRootOnlyAttrs
|
||||||
else realAttrs;
|
else realAttrs;
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation attrs
|
stdenv.mkDerivation (finalAttrs: attrs // {
|
||||||
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue