cgit: wrap python scripts

This commit is contained in:
gnidorah 2018-03-19 21:42:25 +03:00
parent 242abf396f
commit 55f1bbe623
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,7 @@
{ stdenv, fetchurl, openssl, zlib, asciidoc, libxml2, libxslt
, docbook_xml_xslt, pkgconfig, luajit
, gzip, bzip2, xz
, python, wrapPython, pygments, markdown
}:
stdenv.mkDerivation rec {
@ -20,10 +21,11 @@ stdenv.mkDerivation rec {
sha256 = "0wc64dzcxrzgi6kwcljz6y3cwm3ajdgf6aws7g58azbhvl1jk04l";
};
nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [ pkgconfig ] ++ [ python wrapPython ];
buildInputs = [
openssl zlib asciidoc libxml2 libxslt docbook_xml_xslt luajit
];
pythonPath = [ pygments markdown ];
postPatch = ''
sed -e 's|"gzip"|"${gzip}/bin/gzip"|' \
@ -50,6 +52,8 @@ stdenv.mkDerivation rec {
a2x --no-xmllint -f manpage cgitrc.5.txt
mkdir -p "$out/share/man/man5"
cp cgitrc.5 "$out/share/man/man5"
wrapPythonProgramsIn "$out/lib/cgit/filters" "$out $pythonPath"
'';
meta = {

View File

@ -14880,7 +14880,9 @@ with pkgs;
centerim = callPackage ../applications/networking/instant-messengers/centerim { };
cgit = callPackage ../applications/version-management/git-and-tools/cgit { };
cgit = callPackage ../applications/version-management/git-and-tools/cgit {
inherit (python3Packages) python wrapPython pygments markdown;
};
cgminer = callPackage ../applications/misc/cgminer {
amdappsdk = amdappsdk28;