tinyproxy: add docbook_xsl and add nonet option to a2x

This commit is contained in:
Carlos D'Agostino 2018-08-02 23:35:29 +10:00
parent c431713f99
commit a568eec08c

View File

@ -1,4 +1,5 @@
{ stdenv, fetchFromGitHub, automake, autoreconfHook, asciidoc, libxml2, libxslt }: { stdenv, fetchFromGitHub, automake, autoreconfHook, asciidoc, libxml2,
libxslt, docbook_xsl }:
stdenv.mkDerivation rec{ stdenv.mkDerivation rec{
name = "tinyproxy-${version}"; name = "tinyproxy-${version}";
@ -11,7 +12,7 @@ stdenv.mkDerivation rec{
owner = "tinyproxy"; owner = "tinyproxy";
}; };
nativeBuildInputs = [ autoreconfHook asciidoc libxml2 libxslt ]; nativeBuildInputs = [ autoreconfHook asciidoc libxml2 libxslt docbook_xsl ];
# -z flag is not supported in darwin # -z flag is not supported in darwin
preAutoreconf = stdenv.lib.optionalString stdenv.isDarwin '' preAutoreconf = stdenv.lib.optionalString stdenv.isDarwin ''
@ -24,11 +25,13 @@ stdenv.mkDerivation rec{
postConfigure = '' postConfigure = ''
substituteInPlace docs/man5/Makefile --replace \ substituteInPlace docs/man5/Makefile --replace \
"-f manpage" \ "-f manpage" \
"-f manpage \\ "--xsltproc-opts=--nonet \\
-f manpage \\
-L" -L"
substituteInPlace docs/man8/Makefile --replace \ substituteInPlace docs/man8/Makefile --replace \
"-f manpage" \ "-f manpage" \
"-f manpage \\ "--xsltproc-opts=--nonet \\
-f manpage \\
-L" -L"
''; '';