2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-06-03 19:54:27 +00:00
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
2019-12-14 16:37:26 +00:00
|
|
|
, pkg-config
|
2019-06-03 19:54:27 +00:00
|
|
|
, python3
|
|
|
|
, docbook_xml_dtd_43
|
2021-02-11 08:24:26 +00:00
|
|
|
, docbook-xsl-nons
|
2019-06-03 19:54:27 +00:00
|
|
|
, libxslt
|
|
|
|
, gettext
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2018-09-16 23:33:20 +00:00
|
|
|
, withDblatex ? false, dblatex
|
2018-05-28 17:11:29 +00:00
|
|
|
}:
|
2018-03-10 10:39:11 +00:00
|
|
|
|
2019-12-14 16:37:26 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2019-04-25 06:46:07 +00:00
|
|
|
pname = "gtk-doc";
|
2021-02-11 08:24:26 +00:00
|
|
|
version = "1.33.2";
|
|
|
|
|
|
|
|
outputDevdoc = "out";
|
2012-03-19 04:36:41 +00:00
|
|
|
|
2019-12-14 16:37:26 +00:00
|
|
|
format = "other";
|
|
|
|
|
2019-06-03 19:54:27 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = pname;
|
2020-09-20 10:39:55 +00:00
|
|
|
rev = version;
|
2021-02-11 08:24:26 +00:00
|
|
|
sha256 = "A6OXpazrJ05SUIO1ZPVN0xHTXOSov8UnPvUolZAv/Iw=";
|
2009-09-30 05:27:34 +00:00
|
|
|
};
|
2010-05-27 13:08:21 +00:00
|
|
|
|
2017-10-06 22:07:40 +00:00
|
|
|
patches = [
|
2017-12-02 03:10:47 +00:00
|
|
|
passthru.respect_xml_catalog_files_var_patch
|
2017-10-06 22:07:40 +00:00
|
|
|
];
|
2009-09-30 05:27:34 +00:00
|
|
|
|
2019-06-03 19:54:27 +00:00
|
|
|
nativeBuildInputs = [
|
2019-12-14 16:37:26 +00:00
|
|
|
pkg-config
|
2019-06-03 19:54:27 +00:00
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
2019-12-14 16:37:26 +00:00
|
|
|
libxslt # for xsltproc
|
2019-06-03 19:54:27 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
docbook_xml_dtd_43
|
2021-02-11 08:24:26 +00:00
|
|
|
docbook-xsl-nons
|
2019-06-03 19:54:27 +00:00
|
|
|
libxslt
|
2021-01-23 12:26:19 +00:00
|
|
|
] ++ lib.optionals withDblatex [
|
2019-12-14 16:37:26 +00:00
|
|
|
dblatex
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = with python3.pkgs; [
|
|
|
|
pygments # Needed for https://gitlab.gnome.org/GNOME/gtk-doc/blob/GTK_DOC_1_32/meson.build#L42
|
|
|
|
lxml
|
|
|
|
];
|
2018-05-28 17:11:29 +00:00
|
|
|
|
2019-06-03 19:54:27 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dtests=false"
|
|
|
|
"-Dyelp_manual=false"
|
|
|
|
];
|
2014-10-05 20:50:22 +00:00
|
|
|
|
2018-04-25 03:20:18 +00:00
|
|
|
doCheck = false; # requires a lot of stuff
|
|
|
|
doInstallCheck = false; # fails
|
|
|
|
|
2019-12-14 16:37:26 +00:00
|
|
|
postFixup = ''
|
|
|
|
# Do not propagate Python
|
|
|
|
substituteInPlace $out/nix-support/propagated-build-inputs \
|
|
|
|
--replace "${python3}" ""
|
|
|
|
'';
|
|
|
|
|
2017-12-02 03:10:47 +00:00
|
|
|
passthru = {
|
|
|
|
# Consumers are expected to copy the m4 files to their source tree, let them reuse the patch
|
|
|
|
respect_xml_catalog_files_var_patch = ./respect-xml-catalog-files-var.patch;
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2019-04-25 06:46:07 +00:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
2017-12-02 03:10:47 +00:00
|
|
|
};
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2019-09-03 22:49:40 +00:00
|
|
|
description = "Tools to extract documentation embedded in GTK and GNOME source code";
|
2021-02-11 08:24:26 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gtk-doc";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = teams.gnome.members ++ (with maintainers; [ pSub ]);
|
2014-10-05 20:50:22 +00:00
|
|
|
};
|
2009-09-30 05:27:34 +00:00
|
|
|
}
|