Unverified Commit 90591b02 authored by Bobby Rong's avatar Bobby Rong Committed by GitHub
Browse files

Merge pull request #292024 from jmarmstrong1207/gxml-package

gxml: init at 0.20.3
parents 3f5302db 184edcc5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -9142,6 +9142,12 @@
    githubId = 8900;
    name = "Johan Magnus Jonsson";
  };
  jmarmstrong1207 = {
    name = "James Armstrong";
    email = "jm.armstrong1207@gmail.com";
    github = "jmarmstrong1207";
    githubId = 32995055;
  };
  jmbaur = {
    email = "jaredbaur@fastmail.com";
    github = "jmbaur";
+60 −0
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitLab
, gobject-introspection
, meson
, ninja
, pkg-config
, vala
, glib
, libgee
, libxml2
, gitUpdater
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "gxml";
  version = "0.20.3";

  outputs = [ "out" "dev" "devdoc" ];

  src = fetchFromGitLab {
    domain = "gitlab.gnome.org";
    owner = "GNOME";
    repo = "gxml";
    rev = finalAttrs.version;
    hash = "sha256-GlctGxsLyQ2kPV3oBmusRiouG4PPncBTh3vgxhVaQOo=";
  };

  nativeBuildInputs = [
    gobject-introspection
    meson
    ninja
    pkg-config
    vala
  ];

  propagatedBuildInputs = [
    glib
    libgee
    libxml2
  ];

  postPatch = ''
    # https://gitlab.gnome.org/GNOME/gxml/-/merge_requests/24
    substituteInPlace gxml/gxml.pc.in \
      --replace-fail "includedir=@prefix@/include" "includedir=${placeholder "dev"}/include"
  '';

  doCheck = true;

  passthru.updateScript = gitUpdater { };

  meta = with lib; {
    description = "GXml provides a GObject API for manipulating XML and a Serializable framework from GObject to XML";
    homepage = "https://gitlab.gnome.org/GNOME/gxml";
    license = licenses.lgpl21Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ jmarmstrong1207 ] ++ teams.gnome.members;
  };
})