mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 22:14:34 +00:00
7c1568645b
This reverts commit 064ca0afe9
.
The previous gtk-doc version won't build with our current meson.
54 lines
1.7 KiB
Nix
54 lines
1.7 KiB
Nix
{ stdenv, fetchurl, autoreconfHook, pkgconfig, perl, python3, libxml2Python, libxslt, which
|
|
, docbook_xml_dtd_43, docbook_xsl, gnome-doc-utils, gettext, itstool, gnome3
|
|
, withDblatex ? false, dblatex
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gtk-doc";
|
|
version = "1.30";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "17h6nwhis66z4dxjrc833wvfl6pqjp81yfx3fq6x7k1qp2749xm4";
|
|
};
|
|
|
|
patches = [
|
|
passthru.respect_xml_catalog_files_var_patch
|
|
];
|
|
|
|
outputDevdoc = "out";
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs =
|
|
[ pkgconfig perl python3 libxml2Python libxslt docbook_xml_dtd_43 docbook_xsl
|
|
gnome-doc-utils gettext which itstool
|
|
] ++ stdenv.lib.optional withDblatex dblatex;
|
|
|
|
configureFlags = [ "--disable-scrollkeeper" ];
|
|
|
|
# Make pygments available for binaries, python.withPackages creates a wrapper
|
|
# but scripts are not allowed in shebangs so we link it into sys.path.
|
|
postInstall = ''
|
|
ln -s ${python3.pkgs.pygments}/${python3.sitePackages}/* $out/share/gtk-doc/python/
|
|
'';
|
|
|
|
doCheck = false; # requires a lot of stuff
|
|
doInstallCheck = false; # fails
|
|
|
|
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;
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "none";
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Tools to extract documentation embedded in GTK+ and GNOME source code";
|
|
homepage = "https://www.gtk.org/gtk-doc";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
}
|