diff options
| -rw-r--r-- | ymir.nix | 11 |
1 files changed, 8 insertions, 3 deletions
| @@ -65,9 +65,14 @@ in rec { | |||
| 65 | pkgs.python3 | 65 | pkgs.python3 |
| 66 | pkgs.makeWrapper | 66 | pkgs.makeWrapper |
| 67 | ]; | 67 | ]; |
| 68 | postInstall = '' | 68 | postInstall = let |
| 69 | wrapProgram $out/lib/cgit/filters/syntax-highlighting.py --prefix PYTHONPATH ':' ${pkgs.python3.buildEnv.override { extraLibs = with pkgs.python3Packages; [ pygments ]; }}/lib/*/site-packages | 69 | pythonEnv = pkgs.python3.buildEnv.override { extraLibs = with pkgs.python3Packages; [ pygments markdown ]; }; |
| 70 | wrapProgram $out/lib/cgit/filters/html-converters/md2html --prefix PYTHONPATH ':' ${pkgs.python3.buildEnv.override { extraLibs = with pkgs.python3Packages; [ markdown ]; }}/lib/*/site-packages | 70 | in '' |
| 71 | wrapProgram $out/lib/cgit/filters/syntax-highlighting.py --prefix PYTHONPATH ':' ${pythonEnv}/lib/*/site-packages | ||
| 72 | tmpFile=$(mktemp) | ||
| 73 | { echo "#!${pythonEnv}/bin/python3"; tail -n +2 $out/lib/cgit/filters/html-converters/md2html } > $tmpFile | ||
| 74 | mv -v $tmpFile $out/lib/cgit/filters/html-converters/md2html | ||
| 75 | wrapProgram $out/lib/cgit/filters/html-converters/md2html --prefix PYTHONPATH ':' ${pythonEnv}/lib/*/site-packages | ||
| 71 | wrapProgram $out/lib/cgit/filters/html-converters/man2html --prefix PATH ':' ${pkgs.groff}/bin | 76 | wrapProgram $out/lib/cgit/filters/html-converters/man2html --prefix PATH ':' ${pkgs.groff}/bin |
| 72 | ''; | 77 | ''; |
| 73 | }); | 78 | }); |
