glib: 2.56.0 → 2.58.1
This commit is contained in:
parent
3a154cbbc3
commit
0149459f42
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, gettext, pkgconfig, perl, python
|
{ stdenv, fetchurl, gettext, meson, ninja, pkgconfig, perl, python3, glibcLocales
|
||||||
, libiconv, zlib, libffi, pcre, libelf, gnome3
|
, libiconv, zlib, libffi, pcre, libelf, gnome3, libselinux, bash, gnum4, gtk-doc, docbook_xsl, docbook_xml_dtd_45
|
||||||
# use utillinuxMinimal to avoid circular dependency (utillinux, systemd, glib)
|
# use utillinuxMinimal to avoid circular dependency (utillinux, systemd, glib)
|
||||||
, utillinuxMinimal ? null
|
, utillinuxMinimal ? null
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ let
|
|||||||
ln -sr -t "''${!outputInclude}/include/" "''${!outputInclude}"/lib/*/include/* 2>/dev/null || true
|
ln -sr -t "''${!outputInclude}/include/" "''${!outputInclude}"/lib/*/include/* 2>/dev/null || true
|
||||||
'';
|
'';
|
||||||
|
|
||||||
version = "2.56.0";
|
version = "2.58.1";
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/glib/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
url = "mirror://gnome/sources/glib/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
||||||
sha256 = "1iqgi90fmpl3l23jm2iv44qp7hqsxvnv7978s18933bvx4bnxvzc";
|
sha256 = "1mnp4vankish8bqxymdl591p9v1ynk7pfc5dmpx3vamn4vcskmlp";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = optional stdenv.isDarwin ./darwin-compilation.patch
|
patches = optional stdenv.isDarwin ./darwin-compilation.patch
|
||||||
@ -66,41 +66,38 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
buildInputs = [ libelf setupHook pcre ]
|
buildInputs = [
|
||||||
++ optionals stdenv.isLinux [ utillinuxMinimal ]; # for libmount
|
libelf setupHook pcre
|
||||||
|
bash gnum4 # install glib-gettextize and m4 macros for other apps to use
|
||||||
|
] ++ optionals stdenv.isLinux [
|
||||||
|
libselinux
|
||||||
|
utillinuxMinimal # for libmount
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig perl python gettext ];
|
nativeBuildInputs = [ meson ninja pkgconfig perl python3 gettext gtk-doc docbook_xsl docbook_xml_dtd_45 glibcLocales ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ zlib libffi gettext libiconv ];
|
propagatedBuildInputs = [ zlib libffi gettext libiconv ];
|
||||||
|
|
||||||
# internal pcre would only add <200kB, but it's relatively common
|
mesonFlags = [
|
||||||
configureFlags = [ "--with-pcre=system" ]
|
"-Dgtk_doc=true"
|
||||||
++ optional stdenv.isDarwin "--disable-compile-warnings"
|
];
|
||||||
++ optional stdenv.isSunOS "--disable-dtrace"
|
|
||||||
# Can't run this test when cross-compiling
|
LC_ALL = "en_US.UTF-8";
|
||||||
++ optionals (stdenv.hostPlatform != stdenv.buildPlatform)
|
|
||||||
[ "glib_cv_stack_grows=no" "glib_cv_uscore=no" ]
|
|
||||||
# GElf only supports elf64 hosts
|
|
||||||
++ optional (!stdenv.hostPlatform.is64bit) "--disable-libelf";
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = optional stdenv.isSunOS "-DBSD_COMP";
|
NIX_CFLAGS_COMPILE = optional stdenv.isSunOS "-DBSD_COMP";
|
||||||
|
|
||||||
preConfigure = optionalString stdenv.isSunOS ''
|
postPatch = ''
|
||||||
sed -i -e 's|inotify.h|foobar-inotify.h|g' configure
|
substituteInPlace meson.build --replace "install_dir : 'bin'," "install_dir : glib_bindir,"
|
||||||
'';
|
chmod +x gio/tests/gengiotypefuncs.py
|
||||||
|
patchShebangs gio/tests/gengiotypefuncs.py
|
||||||
postConfigure = ''
|
patchShebangs glib/gen-unicode-tables.pl
|
||||||
patchShebangs ./gobject/
|
patchShebangs tests/gen-casefold-txt.py
|
||||||
|
patchShebangs tests/gen-casemap-txt.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
LIBELF_CFLAGS = optional stdenv.isFreeBSD "-I${libelf}";
|
LIBELF_CFLAGS = optional stdenv.isFreeBSD "-I${libelf}";
|
||||||
LIBELF_LIBS = optional stdenv.isFreeBSD "-L${libelf} -lelf";
|
LIBELF_LIBS = optional stdenv.isFreeBSD "-L${libelf} -lelf";
|
||||||
|
|
||||||
preBuild = optionalString stdenv.isDarwin ''
|
|
||||||
export MACOSX_DEPLOYMENT_TARGET=
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
DETERMINISTIC_BUILD = 1;
|
DETERMINISTIC_BUILD = 1;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user