10 , gobject-introspection
17 stdenv.mkDerivation rec {
21 outputs = [ "out" "dev" "devdoc" "installedTests" ];
24 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
25 sha256 = "luyYvnqR9t3jNjZyDj2i/27LuQ52zKpJSX8xpoVaSQ4=";
29 # Add option for changing installation path of installed tests.
30 ./meson-add-installed-tests-prefix-option.patch
48 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
52 buildInputs = [ gobject-introspection ];
54 propagatedBuildInputs = [
59 "-Dinstalled_test_prefix=${placeholder "installedTests"}"
62 # Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
63 # it should be a build-time dep for build
66 substituteInPlace doc/meson.build \
67 --replace "'gi-docgen', ver" "'gi-docgen', native:true, ver" \
68 --replace "'gi-docgen', req" "'gi-docgen', native:true, req"
74 # Move developer documentation to devdoc output.
75 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
76 if [[ -d "$out/share/doc" ]]; then
77 find -L "$out/share/doc" -type f -regex '.*\.devhelp2?' -print0 \
78 | while IFS= read -r -d ''' file; do
79 moveToOutput "$(dirname "''${file/"$out/"/}")" "$devdoc"
86 installedTests = nixosTests.installed-tests.json-glib;
89 updateScript = gnome.updateScript {
91 versionPolicy = "odd-unstable";
96 description = "A library providing (de)serialization support for the JavaScript Object Notation (JSON) format";
97 homepage = "https://wiki.gnome.org/Projects/JsonGlib";
98 license = licenses.lgpl21Plus;
99 maintainers = teams.gnome.members;
100 platforms = with platforms; unix;