2019-06-03 21:54:27 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, python3
|
|
|
|
, libxml2Python
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, docbook_xsl
|
|
|
|
, libxslt
|
|
|
|
, gettext
|
|
|
|
, gnome3
|
2018-09-17 01:33:20 +02:00
|
|
|
, withDblatex ? false, dblatex
|
2018-05-28 19:11:29 +02:00
|
|
|
}:
|
2018-03-10 11:39:11 +01:00
|
|
|
|
2014-10-05 22:50:22 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-04-25 08:46:07 +02:00
|
|
|
pname = "gtk-doc";
|
2019-06-03 21:54:04 +02:00
|
|
|
version = "1.30";
|
2012-03-19 05:36:41 +01:00
|
|
|
|
2019-06-03 21:54:27 +02:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = pname;
|
|
|
|
rev = "GTK_DOC_${stdenv.lib.replaceStrings ["."] ["_"] version }";
|
|
|
|
sha256 = "05lr6apj3pd3s59a7k6p45k9ywwrp577ra4pvkhxvb5p7v90c2fi";
|
2009-09-30 07:27:34 +02:00
|
|
|
};
|
2010-05-27 15:08:21 +02:00
|
|
|
|
2017-10-07 00:07:40 +02:00
|
|
|
patches = [
|
2017-12-02 04:10:47 +01:00
|
|
|
passthru.respect_xml_catalog_files_var_patch
|
2019-06-03 21:54:46 +02:00
|
|
|
# https://gitlab.gnome.org/GNOME/gtk-doc/issues/84
|
|
|
|
./0001-highlight-fix-permission-on-file-style.patch
|
2017-10-07 00:07:40 +02:00
|
|
|
];
|
2009-09-30 07:27:34 +02:00
|
|
|
|
2017-10-07 00:07:40 +02:00
|
|
|
outputDevdoc = "out";
|
2009-09-30 07:27:34 +02:00
|
|
|
|
2019-06-03 21:54:27 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
docbook_xsl
|
|
|
|
libxslt
|
|
|
|
pkgconfig
|
|
|
|
python3
|
|
|
|
libxml2Python
|
|
|
|
]
|
|
|
|
++ stdenv.lib.optional withDblatex dblatex
|
|
|
|
;
|
2018-05-28 19:11:29 +02:00
|
|
|
|
2019-06-03 21:54:27 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dtests=false"
|
|
|
|
"-Dyelp_manual=false"
|
|
|
|
];
|
2014-10-05 22:50:22 +02:00
|
|
|
|
2019-05-16 19:25:41 +02:00
|
|
|
# Make pygments available for binaries, python.withPackages creates a wrapper
|
2018-05-28 19:11:29 +02:00
|
|
|
# but scripts are not allowed in shebangs so we link it into sys.path.
|
|
|
|
postInstall = ''
|
2019-05-16 19:25:41 +02:00
|
|
|
ln -s ${python3.pkgs.pygments}/${python3.sitePackages}/* $out/share/gtk-doc/python/
|
2018-05-28 19:11:29 +02:00
|
|
|
'';
|
2017-10-07 00:07:40 +02:00
|
|
|
|
2018-04-25 05:20:18 +02:00
|
|
|
doCheck = false; # requires a lot of stuff
|
|
|
|
doInstallCheck = false; # fails
|
|
|
|
|
2017-12-02 04:10:47 +01: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;
|
2019-04-25 08:46:07 +02:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
2017-12-02 04:10:47 +01:00
|
|
|
};
|
|
|
|
|
2014-10-05 22:50:22 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tools to extract documentation embedded in GTK+ and GNOME source code";
|
2019-05-04 15:59:55 +02:00
|
|
|
homepage = "https://www.gtk.org/gtk-doc";
|
2014-10-05 22:50:22 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
2009-09-30 07:27:34 +02:00
|
|
|
}
|