nixpkgs-suyu/pkgs/development/libraries/json-glib/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

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