apt: Rely on XML_CATALOG_FILES variable

This commit is contained in:
Jan Tojnar 2017-10-07 14:25:27 +02:00
parent 757c43fd99
commit c3c844a0f5
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
cmake perl curl gtest lzma bzip2 lz4 db dpkg libxslt.bin cmake perl curl gtest lzma bzip2 lz4 db dpkg libxslt.bin
] ++ lib.optionals withDocs [ ] ++ lib.optionals withDocs [
doxygen Po4a w3m doxygen Po4a w3m docbook_xml_dtd_45
] ++ lib.optionals withNLS [ ] ++ lib.optionals withNLS [
gettext gettext
]; ];
@ -44,15 +44,6 @@ stdenv.mkDerivation rec {
-DWITH_DOC=${if withDocs then "ON" else "OFF"} -DWITH_DOC=${if withDocs then "ON" else "OFF"}
-DUSE_NLS=${if withNLS then "ON" else "OFF"} -DUSE_NLS=${if withNLS then "ON" else "OFF"}
) )
for f in doc/*; do
if [[ -f "$f" ]]; then
substituteInPlace "$f" \
--replace \
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
"${docbook_xml_dtd_45}/xml/dtd/docbook/docbookx.dtd"
fi
done
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;