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