mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
407db7b019
In the previous commit, we added a setup hook to docbook dtd and xsl packages, that adds derivation’s catalog file to an environment variable. That should, in theory, remove the need for declaring their catalogs manually. Unfortunately, xmlcatalog utility expects exactly one catalog file, completely disregarding the environment variable in non-interactive context. In the same spirit, the design of gtk-doc m4 files only admits a single catalog file, resulting in another ugly hack.
34 lines
989 B
Nix
34 lines
989 B
Nix
{ stdenv, fetchurl, autoreconfHook, pkgconfig, perl, python, libxml2Python, libxslt, which
|
|
, docbook_xml_dtd_43, docbook_xsl, gnome_doc_utils, dblatex, gettext, itstool }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gtk-doc-${version}";
|
|
version = "1.25";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gtk-doc/${version}/${name}.tar.xz";
|
|
sha256 = "0hpxcij9xx9ny3gs9p0iz4r8zslw8wqymbyababiyl7603a6x90y";
|
|
};
|
|
|
|
patches = [
|
|
./respect-xml-catalog-files-var.patch
|
|
];
|
|
|
|
outputDevdoc = "out";
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs =
|
|
[ pkgconfig perl python libxml2Python libxslt docbook_xml_dtd_43 docbook_xsl
|
|
gnome_doc_utils dblatex gettext which itstool
|
|
];
|
|
|
|
configureFlags = "--disable-scrollkeeper";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://www.gtk.org/gtk-doc;
|
|
description = "Tools to extract documentation embedded in GTK+ and GNOME source code";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
}
|