mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
091dab6fb3
- https://gitlab.gnome.org/GNOME/json-glib/-/tags/1.5.2 - https://gitlab.gnome.org/GNOME/json-glib/-/tags/1.6.0 - https://gitlab.gnome.org/GNOME/json-glib/-/tags/1.6.2 gtk-doc is enabled by default so I had to add it plus DocBook files to dependencies. Also added GNOME team to maintainers so that it is not forgotten the next time (lethalman is no longer maintaining GNOME packages). And correct license and clean up the code a bit while at it.
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, glib
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gettext
|
|
, gobject-introspection
|
|
, fixDarwinDylibNames
|
|
, gtk-doc
|
|
, docbook-xsl-nons
|
|
, docbook_xml_dtd_43
|
|
, gnome3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "json-glib";
|
|
version = "1.6.2";
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "092g2dyy1hhl0ix9kp33wcab0pg1qicnsv0cj5ms9g9qs336cgd3";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gettext
|
|
gobject-introspection
|
|
glib
|
|
gtk-doc
|
|
docbook-xsl-nons
|
|
docbook_xml_dtd_43
|
|
] ++ lib.optional stdenv.hostPlatform.isDarwin [
|
|
fixDarwinDylibNames
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
glib
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A library providing (de)serialization support for the JavaScript Object Notation (JSON) format";
|
|
homepage = "https://wiki.gnome.org/Projects/JsonGlib";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|