diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-04-27 13:54:55 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-04-27 13:54:55 +0200 |
commit | 9804c6c6c479e500fc69b12d1174becd4b86fb40 (patch) | |
tree | 4971806ae0722d8aee1948d71c91e4c8d90edfb9 | |
parent | 0c71252488bdfc6f7226741de497a315e497756d (diff) | |
download | nixos-9804c6c6c479e500fc69b12d1174becd4b86fb40.tar nixos-9804c6c6c479e500fc69b12d1174becd4b86fb40.tar.gz nixos-9804c6c6c479e500fc69b12d1174becd4b86fb40.tar.bz2 nixos-9804c6c6c479e500fc69b12d1174becd4b86fb40.tar.xz nixos-9804c6c6c479e500fc69b12d1174becd4b86fb40.zip |
coreutils for cgit script
-rw-r--r-- | ymir.nix | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -81,6 +81,7 @@ in rec { | |||
81 | pythonEnv = pkgs.python3.buildEnv.override { extraLibs = with pkgs.python3Packages; [ pygments markdown ]; }; | 81 | pythonEnv = pkgs.python3.buildEnv.override { extraLibs = with pkgs.python3Packages; [ pygments markdown ]; }; |
82 | in '' | 82 | in '' |
83 | wrapProgram $out/lib/cgit/filters/syntax-highlighting.py --prefix PYTHONPATH ':' ${pythonEnv}/lib/*/site-packages | 83 | wrapProgram $out/lib/cgit/filters/syntax-highlighting.py --prefix PYTHONPATH ':' ${pythonEnv}/lib/*/site-packages |
84 | wrapProgram $out/lib/cgit/filters/about-formatting.sh --prefix PATH ':' ${pkgs.coreutils}/bin | ||
84 | tmpFile=$(mktemp) | 85 | tmpFile=$(mktemp) |
85 | chmod +x $tmpFile | 86 | chmod +x $tmpFile |
86 | echo "#!${pythonEnv}/bin/python3" >$tmpFile | 87 | echo "#!${pythonEnv}/bin/python3" >$tmpFile |
@@ -117,6 +118,7 @@ in rec { | |||
117 | 118 | ||
118 | printf "%s/%s/%s" "''${baseUrl}" "''${prefix}" "''${filename}" | 119 | printf "%s/%s/%s" "''${baseUrl}" "''${prefix}" "''${filename}" |
119 | ''; | 120 | ''; |
121 | |||
120 | }; | 122 | }; |
121 | 123 | ||
122 | environment.systemPackages = with pkgs; [ | 124 | environment.systemPackages = with pkgs; [ |