mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
336bc8283b
This reverts commit c778945806
.
I believe this is exactly what brings the staging branch into
the right shape after the last merge from master (through staging-next);
otherwise part of staging changes would be lost
(due to being already reachable from master but reverted).
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ stdenv, fetchurl, glib, meson, ninja, pkgconfig, gettext
|
|
, gobject-introspection, fixDarwinDylibNames, gnome3
|
|
}:
|
|
|
|
let
|
|
pname = "json-glib";
|
|
version = "1.4.4";
|
|
in stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
|
sha256 = "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j";
|
|
};
|
|
|
|
propagatedBuildInputs = [ glib ];
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext gobject-introspection glib ]
|
|
++ stdenv.lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A library providing (de)serialization support for the JavaScript Object Notation (JSON) format";
|
|
homepage = "https://wiki.gnome.org/Projects/JsonGlib";
|
|
license = licenses.lgpl2;
|
|
maintainers = with maintainers; [ lethalman ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|