Skip to content

Commit

Permalink
Merge pull request #18849 from groxxda/glib
Browse files Browse the repository at this point in the history
glib: 2.48.2 -> 2.50.0 [-> staging]
  • Loading branch information
lucabrunox committed Sep 22, 2016
2 parents 7a4209c + 868eb83 commit 3e0132f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/development/libraries/glib/default.nix
@@ -1,5 +1,7 @@
{ stdenv, fetchurl, pkgconfig, gettext, perl, python
, libiconv, libintlOrEmpty, zlib, libffi, pcre, libelf
# use utillinuxMinimal to avoid circular dependency (utillinux, systemd, glib)
, utillinuxMinimal ? null

# this is just for tests (not in closure of any regular package)
, coreutils, dbus_daemon, libxml2, tzdata, desktop_file_utils, shared_mime_info, doCheck ? false
Expand All @@ -8,6 +10,7 @@
with stdenv.lib;

assert stdenv.isFreeBSD || stdenv.isDarwin || stdenv.cc.isGNU;
assert stdenv.isLinux -> utillinuxMinimal != null;

# TODO:
# * Add gio-module-fam
Expand Down Expand Up @@ -39,16 +42,16 @@ let
ln -sr -t "''${!outputInclude}/include/" "''${!outputInclude}"/lib/*/include/* 2>/dev/null || true
'';

ver_maj = "2.48";
ver_min = "2";
ver_maj = "2.50";
ver_min = "0";
in

stdenv.mkDerivation rec {
name = "glib-${ver_maj}.${ver_min}";

src = fetchurl {
url = "mirror://gnome/sources/glib/${ver_maj}/${name}.tar.xz";
sha256 = "f25e751589cb1a58826eac24fbd4186cda4518af772806b666a3f91f66e6d3f4";
sha256 = "830b551fa626bda06e12729205b3c5bb0d82b924a8cf64d948945878f01b7d70";
};

patches = optional stdenv.isDarwin ./darwin-compilation.patch ++ optional doCheck ./skip-timer-test.patch;
Expand All @@ -59,6 +62,7 @@ stdenv.mkDerivation rec {
setupHook = ./setup-hook.sh;

buildInputs = [ libelf setupHook pcre ]
++ optionals stdenv.isLinux [ utillinuxMinimal ] # for libmount
++ optionals doCheck [ tzdata libxml2 desktop_file_utils shared_mime_info ];

nativeBuildInputs = [ pkgconfig gettext perl python ];
Expand Down

0 comments on commit 3e0132f

Please sign in to comment.