3
0
Fork 0
forked from mirrors/nixpkgs

glib: fix cross-compiling

This commit is contained in:
Jörg Thalheim 2021-02-24 10:31:18 +00:00
parent 7f5d920bc5
commit 884a83cacb
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -92,6 +92,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libelf setupHook pcre
bash gnum4 # install glib-gettextize and m4 macros for other apps to use
gtk-doc
] ++ optionals stdenv.isLinux [
libselinux
util-linuxMinimal # for libmount
@ -99,8 +100,10 @@ stdenv.mkDerivation rec {
AppKit Carbon Cocoa CoreFoundation CoreServices Foundation
]);
strictDeps = true;
nativeBuildInputs = [
meson ninja pkg-config perl python3 gettext gtk-doc docbook_xsl docbook_xml_dtd_45
meson ninja pkg-config perl python3 gettext gtk-doc docbook_xsl docbook_xml_dtd_45 libxml2
];
propagatedBuildInputs = [ zlib libffi gettext libiconv ];
@ -144,7 +147,7 @@ stdenv.mkDerivation rec {
cp -r ${buildPackages.glib.devdoc} $devdoc
'';
checkInputs = [ tzdata libxml2 desktop-file-utils shared-mime-info ];
checkInputs = [ tzdata desktop-file-utils shared-mime-info ];
preCheck = optionalString doCheck ''
export LD_LIBRARY_PATH="$NIX_BUILD_TOP/${pname}-${version}/glib/.libs''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"