2024-02-28 17:18:23 -08:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitLab,
|
|
|
|
gobject-introspection,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
vala,
|
|
|
|
glib,
|
|
|
|
libgee,
|
|
|
|
libxml2,
|
|
|
|
gitUpdater,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "gxml";
|
2024-12-31 21:16:44 +00:00
|
|
|
version = "0.20.4";
|
2024-02-28 17:18:23 -08:00
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
"devdoc"
|
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = "gxml";
|
2025-04-08 02:51:45 -04:00
|
|
|
rev = finalAttrs.version;
|
2024-12-31 21:16:44 +00:00
|
|
|
hash = "sha256-/gaWuUytBsvAsC95ee6MtTW6g3ltGbkD+JWqrAjJLDc=";
|
2024-02-28 17:18:23 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
libgee
|
|
|
|
libxml2
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# https://gitlab.gnome.org/GNOME/gxml/-/merge_requests/24
|
2024-12-31 21:16:44 +00:00
|
|
|
# https://gitlab.gnome.org/GNOME/gxml/-/merge_requests/28
|
2024-02-28 17:18:23 -08:00
|
|
|
substituteInPlace gxml/gxml.pc.in \
|
2024-12-31 21:16:44 +00:00
|
|
|
--replace-fail "includedir=@prefix@/include" "includedir=${placeholder "dev"}/include" \
|
|
|
|
--replace-fail ">=2" ">= 2" \
|
|
|
|
--replace-fail ">=0" ">= 0"
|
2024-02-28 17:18:23 -08:00
|
|
|
'';
|
|
|
|
|
2025-06-22 22:46:51 +08:00
|
|
|
# https://github.com/NixOS/nixpkgs/issues/407969
|
|
|
|
doCheck = false;
|
2024-02-28 17:18:23 -08:00
|
|
|
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
|
|
|
|
meta = with lib; {
|
2025-08-11 00:32:59 -07:00
|
|
|
description = "Provides a GObject API for manipulating XML and a Serializable framework from GObject to XML";
|
2024-02-28 17:18:23 -08:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gxml";
|
2024-10-04 21:35:12 +02:00
|
|
|
changelog = "https://gitlab.gnome.org/GNOME/gxml/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
|
2024-02-28 17:18:23 -08:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ jmarmstrong1207 ];
|
|
|
|
teams = [ teams.gnome ];
|
|
|
|
};
|
|
|
|
})
|