Skip to content

Commit

Permalink
Merge pull request #67565 from peti/t/mod_wsgi3
Browse files Browse the repository at this point in the history
mod_wsgi: allow building this module with python 2.x and 3.x
  • Loading branch information
globin committed Aug 27, 2019
2 parents 5b15221 + cab4546 commit 3c83ad6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkgs/servers/http/apache-modules/mod_wsgi/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, apacheHttpd, python2 }:
{ stdenv, fetchurl, apacheHttpd, python, ncurses }:

stdenv.mkDerivation rec {
name = "mod_wsgi-${version}";
Expand All @@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "1q75ifadjd5frr5i2b9swbjiwfv4fr4ny8npsm09w6mjp7w0bgjw";
};

buildInputs = [ apacheHttpd python2 ];
buildInputs = [ apacheHttpd python ncurses ];

patchPhase = ''
sed -r -i -e "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" \
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -13546,7 +13546,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; };

Expand Down

0 comments on commit 3c83ad6

Please sign in to comment.