2018-01-30 21:03:43 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, glib, meson, ninja, pkgconfig, gettext
|
|
|
|
, gobjectIntrospection, dbus, libintlOrEmpty
|
|
|
|
, fixDarwinDylibNames
|
|
|
|
}:
|
2010-09-27 11:18:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-12 21:30:40 +00:00
|
|
|
name = "json-glib-${minVer}.2";
|
|
|
|
minVer = "1.4";
|
2010-09-27 11:18:28 +00:00
|
|
|
|
2015-04-05 05:22:12 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/json-glib/${minVer}/${name}.tar.xz";
|
2017-10-12 21:30:40 +00:00
|
|
|
sha256 = "2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8";
|
2010-09-27 11:18:28 +00:00
|
|
|
};
|
|
|
|
|
2017-10-12 21:30:40 +00:00
|
|
|
propagatedBuildInputs = [ glib ];
|
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext gobjectIntrospection ];
|
2018-01-30 21:03:43 +00:00
|
|
|
buildInputs = libintlOrEmpty
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
2016-06-17 00:42:15 +00:00
|
|
|
|
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
2010-09-27 11:18:28 +00:00
|
|
|
|
2017-10-12 21:30:40 +00:00
|
|
|
patches = [
|
|
|
|
# https://gitlab.gnome.org/GNOME/json-glib/issues/27
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/json-glib/merge_requests/2.diff";
|
|
|
|
sha256 = "0pf006jxj1ki7a0w4ykxm6b24m0wafrhpdcmixsw9x83m227156c";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-12-09 14:47:12 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2017-10-12 21:30:40 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2014-05-19 08:55:16 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-09-27 11:18:28 +00:00
|
|
|
homepage = http://live.gnome.org/JsonGlib;
|
|
|
|
description = "A library providing (de)serialization support for the JavaScript Object Notation (JSON) format";
|
2014-05-19 08:55:16 +00:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ lethalman ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2010-09-27 11:18:28 +00:00
|
|
|
};
|
|
|
|
}
|