tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
icu: Add `meta.pkgConfigModules` and test
John Ericson
3 years ago
fd34bbb0
d0e78671
+13
-3
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
icu
63.nix
base.nix
+4
-2
pkgs/development/libraries/icu/63.nix
···
1
1
-
{ stdenv, lib, fetchurl, fetchpatch, fixDarwinDylibNames, nativeBuildRoot, buildRootOnly ? false }:
1
1
+
{ stdenv, lib, fetchurl, fetchpatch, fixDarwinDylibNames, nativeBuildRoot, testers
2
2
+
, buildRootOnly ? false
3
3
+
}:
2
4
3
5
import ./base.nix {
4
6
version = "63.1";
···
11
13
})
12
14
];
13
15
patchFlags = [ "-p3" ];
14
14
-
} { inherit stdenv lib fetchurl fixDarwinDylibNames nativeBuildRoot buildRootOnly; }
16
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
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
49
+
pkgConfigModules = [
50
50
+
"icu-i18n"
51
51
+
"icu-io"
52
52
+
"icu-uc"
53
53
+
];
48
54
platforms = platforms.all;
49
55
};
50
56
};
···
97
103
then buildRootOnlyAttrs
98
104
else realAttrs;
99
105
in
100
100
-
stdenv.mkDerivation attrs
106
106
+
stdenv.mkDerivation (finalAttrs: attrs // {
107
107
+
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
108
108
+
})