2018-09-26 03:56:02 +01:00
|
|
|
{ stdenv, fetchurl, glib, meson, ninja, pkgconfig, gettext
|
2018-12-02 11:41:15 +00:00
|
|
|
, gobject-introspection, fixDarwinDylibNames, gnome3
|
2018-01-30 21:03:43 +00:00
|
|
|
}:
|
2010-09-27 12:18:28 +01:00
|
|
|
|
2018-05-31 18:14:38 +01:00
|
|
|
let
|
|
|
|
pname = "json-glib";
|
2018-09-26 03:56:02 +01:00
|
|
|
version = "1.4.4";
|
2018-05-31 18:14:38 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2010-09-27 12:18:28 +01:00
|
|
|
|
2015-04-05 06:22:12 +01:00
|
|
|
src = fetchurl {
|
2018-05-31 18:14:38 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-09-26 03:56:02 +01:00
|
|
|
sha256 = "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j";
|
2010-09-27 12:18:28 +01:00
|
|
|
};
|
|
|
|
|
2017-10-12 22:30:40 +01:00
|
|
|
propagatedBuildInputs = [ glib ];
|
2018-12-02 11:41:15 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext gobject-introspection ];
|
2018-03-14 19:15:06 +00:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
2010-09-27 12:18:28 +01:00
|
|
|
|
2016-12-09 14:47:12 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2017-10-12 22:30:40 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2018-05-31 18:14:38 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-05-19 09:55:16 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-09-27 12:18:28 +01:00
|
|
|
description = "A library providing (de)serialization support for the JavaScript Object Notation (JSON) format";
|
2018-05-31 18:14:38 +01:00
|
|
|
homepage = https://wiki.gnome.org/Projects/JsonGlib;
|
2014-05-19 09:55:16 +01:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ lethalman ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2010-09-27 12:18:28 +01:00
|
|
|
};
|
|
|
|
}
|