mercurial/apache: put PYTHONPATH in globalEnvVars

svn path=/nixos/trunk/; revision=24115
This commit is contained in:
Rob Vermaas 2010-10-06 12:38:37 +00:00
parent 8d60cad42a
commit f2f048db4d

View File

@ -42,7 +42,6 @@ in {
AllowOverride All AllowOverride All
Options ExecCGI Options ExecCGI
AddHandler cgi-script .cgi AddHandler cgi-script .cgi
SetEnv PYTHONPATH "${mercurial}/lib/${pkgs.python.libPrefix}/site-packages"
PassEnv PYTHONPATH PassEnv PYTHONPATH
</Directory> </Directory>
''; '';
@ -56,6 +55,8 @@ in {
(pkgs.python+"/bin") (pkgs.python+"/bin")
]; ];
globalEnvVars = [ { name = "PYTHONPATH"; value = "${mercurial}/lib/${pkgs.python.libPrefix}/site-packages"; } ];
options = { options = {
urlPrefix = mkOption { urlPrefix = mkOption {
default = "/hg"; default = "/hg";