cgit: patch and wrap filters
This commit is contained in:
parent
f011ae4dcd
commit
4965343da0
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl, openssl, zlib, asciidoc, libxml2, libxslt
|
{ stdenv, fetchurl, openssl, zlib, asciidoc, libxml2, libxslt
|
||||||
, docbook_xsl, pkgconfig, luajit
|
, docbook_xsl, pkgconfig, luajit
|
||||||
, groff, gzip, bzip2, xz
|
, coreutils, gnused, groff, docutils
|
||||||
|
, gzip, bzip2, xz
|
||||||
, python, wrapPython, pygments, markdown
|
, python, wrapPython, pygments, markdown
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -35,6 +36,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
substituteInPlace filters/html-converters/man2html \
|
substituteInPlace filters/html-converters/man2html \
|
||||||
--replace 'groff' '${groff}/bin/groff'
|
--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
|
# 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"
|
cp cgitrc.5 "$out/share/man/man5"
|
||||||
|
|
||||||
wrapPythonProgramsIn "$out/lib/cgit/filters" "$out $pythonPath"
|
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 = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user