summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-04-27 13:54:55 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-04-27 13:54:55 +0200
commit9804c6c6c479e500fc69b12d1174becd4b86fb40 (patch)
tree4971806ae0722d8aee1948d71c91e4c8d90edfb9
parent0c71252488bdfc6f7226741de497a315e497756d (diff)
downloadnixos-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.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/ymir.nix b/ymir.nix
index 55e61cc3..f991f9ca 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -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; [