about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthony Roussel <anthony@roussel.dev>2024-03-21 22:35:49 +0100
committerAnthony Roussel <anthony@roussel.dev>2024-03-22 13:09:10 +0100
commitfe949d046efe36facc87b92b27201e0e27481ce8 (patch)
tree555c907ccea131344d9a5349f770928fd6e6679f
parent12f1b8f192d23132c3ad6f294ce614e92f2a3eb0 (diff)
downloadnixlib-fe949d046efe36facc87b92b27201e0e27481ce8.tar
nixlib-fe949d046efe36facc87b92b27201e0e27481ce8.tar.gz
nixlib-fe949d046efe36facc87b92b27201e0e27481ce8.tar.bz2
nixlib-fe949d046efe36facc87b92b27201e0e27481ce8.tar.lz
nixlib-fe949d046efe36facc87b92b27201e0e27481ce8.tar.xz
nixlib-fe949d046efe36facc87b92b27201e0e27481ce8.tar.zst
nixlib-fe949d046efe36facc87b92b27201e0e27481ce8.zip
apacheHttpdPackages.mod_python: add passthru.updateScript
-rw-r--r--pkgs/servers/http/apache-modules/mod_python/default.nix24
1 files changed, 20 insertions, 4 deletions
diff --git a/pkgs/servers/http/apache-modules/mod_python/default.nix b/pkgs/servers/http/apache-modules/mod_python/default.nix
index cb611dfcc605..7cc8c102f593 100644
--- a/pkgs/servers/http/apache-modules/mod_python/default.nix
+++ b/pkgs/servers/http/apache-modules/mod_python/default.nix
@@ -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;