Merge branch 'master' into stdenv-updates
Conflicts (relatively simple): pkgs/development/interpreters/python/2.7/default.nix pkgs/development/libraries/dbus/default.nix pkgs/development/libraries/glib/default.nix pkgs/development/libraries/glibc/2.17/common.nix
This commit is contained in:
+35
-19
@@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconvOrNull, zlib, libffi
|
||||
, python, pcre }:
|
||||
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconvOrEmpty, zlib, libffi
|
||||
, python, pcre, libelf }:
|
||||
|
||||
# TODO:
|
||||
# * Add gio-module-fam
|
||||
@@ -11,35 +11,58 @@
|
||||
# Reminder: add 'sed -e 's@python2\.[0-9]@python@' -i
|
||||
# $out/bin/gtester-report' to postInstall if this is solved
|
||||
|
||||
let
|
||||
# some packages don't get "Cflags" from pkgconfig correctly
|
||||
# and then fail to build when directly including like <glib/...>
|
||||
flattenInclude = ''
|
||||
for dir in $out/include/*; do
|
||||
cp -r $dir/* "$out/include/"
|
||||
rm -r "$dir"
|
||||
ln -s . "$dir"
|
||||
done
|
||||
ln -sr -t "$out/include/" $out/lib/*/include/* 2>/dev/null || true
|
||||
'';
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
name = "glib-2.34.3";
|
||||
name = "glib-2.36.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/glib/2.34/${name}.tar.xz";
|
||||
sha256 = "855fcbf87cb93065b488358e351774d8a39177281023bae58c286f41612658a7";
|
||||
url = "mirror://gnome/sources/glib/2.36/${name}.tar.xz";
|
||||
sha256 = "090bw5par3dfy5m6dhq393pmy92zpw3d7rgbzqjc14jfg637bqvx";
|
||||
};
|
||||
|
||||
# configure script looks for d-bus but it is only needed for tests
|
||||
buildInputs = [ libiconvOrNull ];
|
||||
buildInputs = [ libelf ];
|
||||
|
||||
nativeBuildInputs = [ perl pkgconfig gettext python ];
|
||||
|
||||
propagatedBuildInputs = [ pcre zlib libffi ];
|
||||
propagatedBuildInputs = [ pcre zlib libffi ] ++ libiconvOrEmpty;
|
||||
|
||||
configureFlags = "--with-pcre=system --disable-fam" +
|
||||
(stdenv.lib.optionalString (libiconvOrNull != null) " --with-libiconv=gnu") +
|
||||
(stdenv.lib.optionalString stdenv.isSunOS " --disable-modular-tests");
|
||||
configureFlags = stdenv.lib.optional stdenv.isSunOS "--disable-modular-tests";
|
||||
|
||||
CPPFLAGS = stdenv.lib.optionalString stdenv.isSunOS "-DBSD_COMP";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
postConfigure = "sed '/SANE_MALLOC_PROTOS/s,^,//,' -i config.h" # https://bugzilla.gnome.org/show_bug.cgi?id=698716 :-)
|
||||
+ stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
sed '24 i #include <Foundation/Foundation.h>'
|
||||
'';
|
||||
|
||||
passthru.gioModuleDir = "lib/gio/modules";
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''rm -rvf $out/share/gtk-doc'';
|
||||
|
||||
passthru = {
|
||||
gioModuleDir = "lib/gio/modules";
|
||||
inherit flattenInclude;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "GLib, a C library of programming buildings blocks";
|
||||
homepage = http://www.gtk.org/;
|
||||
license = "LGPLv2+";
|
||||
maintainers = with stdenv.lib.maintainers; [ raskin urkud lovek323 ];
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
|
||||
longDescription = ''
|
||||
GLib provides the core application building blocks for libraries
|
||||
@@ -47,13 +70,6 @@ stdenv.mkDerivation (rec {
|
||||
system used in GNOME, the main loop implementation, and a large
|
||||
set of utility functions for strings and common data structures.
|
||||
'';
|
||||
|
||||
homepage = http://www.gtk.org/;
|
||||
|
||||
license = "LGPLv2+";
|
||||
|
||||
maintainers = with stdenv.lib.maintainers; [raskin urkud];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user