diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-12-23 20:10:34 +0000 |
---|---|---|
committer | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-12-23 22:28:11 +0000 |
commit | 48ba7f97df51d805b9c8958ae3e2bc33b0bf9ec3 (patch) | |
tree | 2956a5e3283ee367e0869e5e049ca1363804f83a /pkgs/servers/http | |
parent | 1cdc2a2452f4969c90049d3fef41b8969d125d83 (diff) |
mod_python: 3.5.0 -> unstable-2022-10-18
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r-- | pkgs/servers/http/apache-modules/mod_python/default.nix | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/pkgs/servers/http/apache-modules/mod_python/default.nix b/pkgs/servers/http/apache-modules/mod_python/default.nix index 1b8ef94fae95c..1b7a7c31d4beb 100644 --- a/pkgs/servers/http/apache-modules/mod_python/default.nix +++ b/pkgs/servers/http/apache-modules/mod_python/default.nix @@ -1,36 +1,32 @@ -{ lib, stdenv, fetchurl, apacheHttpd, python2, libintl }: +{ lib, stdenv, fetchFromGitHub, apacheHttpd, python3, libintl }: stdenv.mkDerivation rec { pname = "mod_python"; - version = "3.5.0"; + version = "unstable-2022-10-18"; - src = fetchurl { - url = "http://dist.modpython.org/dist/${pname}-${version}.tgz"; - sha256 = "146apll3yfqk05s8fkf4acmxzqncl08bgn4rv0c1rd4qxmc91w0f"; + src = fetchFromGitHub { + owner = "grisha"; + repo = pname; + rev = "d066b07564d2194839eceb535485eb1ba0c292d8"; + hash = "sha256-EH8wrXqUAOFWyPKfysGeiIezgrVc789RYO4AHeSA6t4="; }; patches = [ ./install.patch ]; - postPatch = '' - substituteInPlace dist/version.sh \ - --replace 'GIT=`git describe --always`' "" \ - --replace '-$GIT' "" - ''; - - installFlags = [ "LIBEXECDIR=${placeholder "out"}/modules" ]; - - preInstall = '' - mkdir -p $out/modules $out/bin - ''; + installFlags = [ + "LIBEXECDIR=$(out)/modules" + "BINDIR=$(out)/bin" + ]; passthru = { inherit apacheHttpd; }; - buildInputs = [ apacheHttpd python2 ] + buildInputs = [ apacheHttpd python3 ] ++ lib.optional stdenv.isDarwin libintl; - meta = { + meta = with lib; { homepage = "http://modpython.org/"; description = "An Apache module that embeds the Python interpreter within the server"; - platforms = lib.platforms.unix; + platforms = platforms.unix; + maintainers = with maintainers; [ ]; }; } |