about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthony Roussel <anthony@roussel.dev>2024-03-21 22:29:23 +0100
committerAnthony Roussel <anthony@roussel.dev>2024-03-22 12:52:24 +0100
commit65759dbf08519483c1d2a311a8fd2bc715b2a3f4 (patch)
tree0577abcb717a921a9cc385db374465f154e751bf
parent7b7a71ab01ef172028c3a834c8c8a0783f1632d0 (diff)
downloadnixlib-65759dbf08519483c1d2a311a8fd2bc715b2a3f4.tar
nixlib-65759dbf08519483c1d2a311a8fd2bc715b2a3f4.tar.gz
nixlib-65759dbf08519483c1d2a311a8fd2bc715b2a3f4.tar.bz2
nixlib-65759dbf08519483c1d2a311a8fd2bc715b2a3f4.tar.lz
nixlib-65759dbf08519483c1d2a311a8fd2bc715b2a3f4.tar.xz
nixlib-65759dbf08519483c1d2a311a8fd2bc715b2a3f4.tar.zst
nixlib-65759dbf08519483c1d2a311a8fd2bc715b2a3f4.zip
apacheHttpdPackages.mod_perl: add passthru.updateScript
-rw-r--r--pkgs/servers/http/apache-modules/mod_perl/default.nix35
1 files changed, 31 insertions, 4 deletions
diff --git a/pkgs/servers/http/apache-modules/mod_perl/default.nix b/pkgs/servers/http/apache-modules/mod_perl/default.nix
index 1c150b7f957b..002cfef2505f 100644
--- a/pkgs/servers/http/apache-modules/mod_perl/default.nix
+++ b/pkgs/servers/http/apache-modules/mod_perl/default.nix
@@ -1,4 +1,12 @@
-{ stdenv, fetchurl, apacheHttpd, perl, nixosTests }:
+{
+  apacheHttpd,
+  directoryListingUpdater,
+  fetchurl,
+  lib,
+  nixosTests,
+  perl,
+  stdenv,
+}:
 
 stdenv.mkDerivation rec {
   pname = "mod_perl";
@@ -9,12 +17,17 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-9bghtZsP3JZw5G7Q/PMtiRHyUSYYmotowWUvkiHu4mk=";
   };
 
-  buildInputs = [ apacheHttpd perl ];
+  buildInputs = [
+    apacheHttpd
+    perl
+  ];
+
   buildPhase = ''
     perl Makefile.PL \
       MP_APXS=${apacheHttpd.dev}/bin/apxs
     make
   '';
+
   installPhase = ''
     mkdir -p $out
     make install DESTDIR=$out
@@ -24,6 +37,20 @@ stdenv.mkDerivation rec {
     rm $out/nix -rf
   '';
 
-  passthru.tests = nixosTests.mod_perl;
-  meta.mainProgram = "mp2bug";
+  passthru = {
+    updateScript = directoryListingUpdater {
+      url = "https://archive.apache.org/dist/perl/";
+    };
+    tests = nixosTests.mod_perl;
+  };
+
+  meta = with lib; {
+    description = "Integration of perl with the Apache2 web server";
+    homepage = "https://perl.apache.org/download/index.html";
+    changelog = "https://github.com/apache/mod_perl/blob/trunk/Changes";
+    license = licenses.asl20;
+    mainProgram = "mp2bug";
+    maintainers = with maintainers; [ ];
+    platforms = platforms.unix;
+  };
 }