apacheHttpdPackages.mod_python: add passthru.updateScript

This commit is contained in:
Anthony Roussel 2024-03-21 22:35:49 +01:00
parent 12f1b8f192
commit fe949d046e
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E
1 changed files with 20 additions and 4 deletions

View File

@ -1,4 +1,12 @@
{ lib, stdenv, fetchFromGitHub, apacheHttpd, python3, libintl }:
{
apacheHttpd,
fetchFromGitHub,
lib,
libintl,
nix-update-script,
python3,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "mod_python";
@ -18,13 +26,21 @@ stdenv.mkDerivation rec {
"BINDIR=$(out)/bin"
];
passthru = { inherit apacheHttpd; };
buildInputs = [
apacheHttpd
python3
] ++ lib.optionals stdenv.isDarwin [
libintl
];
buildInputs = [ apacheHttpd python3 ]
++ lib.optional 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;