diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-13 14:32:24 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-13 14:32:24 +0200 |
commit | 6b77688298fb02ac5109427011f8be724ae60ae9 (patch) | |
tree | 2c4f9229244253cd1f64c94e2f123f2c18e6a509 /ymir.nix | |
parent | b8e1eb71faea60d00c94f73c3a4312f1746b2cb8 (diff) | |
download | nixos-6b77688298fb02ac5109427011f8be724ae60ae9.tar nixos-6b77688298fb02ac5109427011f8be724ae60ae9.tar.gz nixos-6b77688298fb02ac5109427011f8be724ae60ae9.tar.bz2 nixos-6b77688298fb02ac5109427011f8be724ae60ae9.tar.xz nixos-6b77688298fb02ac5109427011f8be724ae60ae9.zip |
fancier wrappers for converters
Diffstat (limited to 'ymir.nix')
-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 | }); |