3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/json-glib/default.nix

46 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch, glib, meson, ninja, pkgconfig, gettext
, gobjectIntrospection, fixDarwinDylibNames, gnome3
}:
2018-05-31 18:14:38 +01:00
let
pname = "json-glib";
version = "1.4.2";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
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";
2017-10-12 22:30:40 +01:00
sha256 = "2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8";
};
2017-10-12 22:30:40 +01:00
propagatedBuildInputs = [ glib ];
nativeBuildInputs = [ meson ninja pkgconfig gettext gobjectIntrospection ];
2018-03-14 19:15:06 +00:00
buildInputs = stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
2017-10-12 22:30:40 +01: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 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; {
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 ];
platforms = with platforms; unix;
};
}