3
0
Fork 0
forked from mirrors/nixpkgs

cgit: patch and wrap filters

This commit is contained in:
pacien 2019-06-11 01:10:01 +02:00 committed by Bjørn Forsman
parent f011ae4dcd
commit 4965343da0

View file

@ -1,6 +1,7 @@
{ stdenv, fetchurl, openssl, zlib, asciidoc, libxml2, libxslt
, docbook_xsl, pkgconfig, luajit
, groff, gzip, bzip2, xz
, coreutils, gnused, groff, docutils
, gzip, bzip2, xz
, python, wrapPython, pygments, markdown
}:
@ -35,6 +36,9 @@ stdenv.mkDerivation rec {
substituteInPlace filters/html-converters/man2html \
--replace 'groff' '${groff}/bin/groff'
substituteInPlace filters/html-converters/rst2html \
--replace 'rst2html.py' '${docutils}/bin/rst2html.py'
'';
# Give cgit a git source tree and pass configuration parameters (as make
@ -57,6 +61,10 @@ stdenv.mkDerivation rec {
cp cgitrc.5 "$out/share/man/man5"
wrapPythonProgramsIn "$out/lib/cgit/filters" "$out $pythonPath"
for script in $out/lib/cgit/filters/*.sh $out/lib/cgit/filters/html-converters/txt2html; do
wrapProgram $script --prefix PATH : '${stdenv.lib.makeBinPath [ coreutils gnused ]}'
done
'';
meta = {