blob: 8b4fcd5d94bee145850a3dfe805165f65bca0f00 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
apacheHttpd,
fetchFromGitHub,
lib,
libintl,
nix-update-script,
python3,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "mod_python";
version = "3.5.0.2";
src = fetchFromGitHub {
owner = "grisha";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-EH8wrXqUAOFWyPKfysGeiIezgrVc789RYO4AHeSA6t4=";
};
patches = [ ./install.patch ];
installFlags = [
"LIBEXECDIR=$(out)/modules"
"BINDIR=$(out)/bin"
];
buildInputs = [
apacheHttpd
python3
] ++ lib.optionals stdenv.isDarwin [
libintl
];
passthru = {
inherit apacheHttpd;
updateScript = nix-update-script { };
};
meta = with lib; {
homepage = "https://modpython.org/";
changelog = "https://github.com/grisha/mod_python/blob/${version}/NEWS";
description = "An Apache module that embeds the Python interpreter within the server";
mainProgram = "mod_python";
platforms = platforms.unix;
maintainers = with maintainers; [ ];
};
}
|