mod_wsgi: allow building this module with python 2.x and 3.x
This commit is contained in:
parent
630e25ba5c
commit
79c6d22c1f
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, apacheHttpd, python2 }:
|
||||
{ stdenv, fetchurl, apacheHttpd, python, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mod_wsgi-${version}";
|
||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1j8pqn0xhd502ardlmkqx8y85s1npmk9nifqps60wjh29nny03f2";
|
||||
};
|
||||
|
||||
buildInputs = [ apacheHttpd python2 ];
|
||||
buildInputs = [ apacheHttpd python ncurses ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -r -i -e "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" \
|
||||
|
|
|
@ -14466,7 +14466,9 @@ in
|
|||
|
||||
mod_python = callPackage ../servers/http/apache-modules/mod_python { };
|
||||
|
||||
mod_wsgi = callPackage ../servers/http/apache-modules/mod_wsgi { };
|
||||
mod_wsgi = self.mod_wsgi2;
|
||||
mod_wsgi2 = callPackage ../servers/http/apache-modules/mod_wsgi { python = python2; ncurses = null; };
|
||||
mod_wsgi3 = callPackage ../servers/http/apache-modules/mod_wsgi { python = python3; };
|
||||
|
||||
php = pkgs.php.override { inherit apacheHttpd; };
|
||||
|
||||
|
|
Loading…
Reference in New Issue