zipline: refactor environment variables (#377101)
[NixPkgs.git] / pkgs / by-name / gx / gxml / package.nix
blob771c4f6039eaf0f57bcc000c8835a2cd9a9cd9c8
2   stdenv,
3   lib,
4   fetchFromGitLab,
5   gobject-introspection,
6   meson,
7   ninja,
8   pkg-config,
9   vala,
10   glib,
11   libgee,
12   libxml2,
13   gitUpdater,
16 stdenv.mkDerivation (finalAttrs: {
17   pname = "gxml";
18   version = "0.20.4";
20   outputs = [
21     "out"
22     "dev"
23     "devdoc"
24   ];
26   src = fetchFromGitLab {
27     domain = "gitlab.gnome.org";
28     owner = "GNOME";
29     repo = "gxml";
30     rev = finalAttrs.version;
31     hash = "sha256-/gaWuUytBsvAsC95ee6MtTW6g3ltGbkD+JWqrAjJLDc=";
32   };
34   nativeBuildInputs = [
35     gobject-introspection
36     meson
37     ninja
38     pkg-config
39     vala
40   ];
42   propagatedBuildInputs = [
43     glib
44     libgee
45     libxml2
46   ];
48   postPatch = ''
49     # https://gitlab.gnome.org/GNOME/gxml/-/merge_requests/24
50     # https://gitlab.gnome.org/GNOME/gxml/-/merge_requests/28
51     substituteInPlace gxml/gxml.pc.in \
52       --replace-fail "includedir=@prefix@/include" "includedir=${placeholder "dev"}/include" \
53       --replace-fail ">=2" ">= 2" \
54       --replace-fail ">=0" ">= 0"
55   '';
57   doCheck = true;
59   passthru.updateScript = gitUpdater { };
61   meta = with lib; {
62     description = "GXml provides a GObject API for manipulating XML and a Serializable framework from GObject to XML";
63     homepage = "https://gitlab.gnome.org/GNOME/gxml";
64     changelog = "https://gitlab.gnome.org/GNOME/gxml/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
65     license = licenses.lgpl21Plus;
66     platforms = platforms.linux;
67     maintainers = with maintainers; [ jmarmstrong1207 ] ++ teams.gnome.members;
68   };