diff options
author | Anthony Roussel <anthony@roussel.dev> | 2024-03-21 22:29:23 +0100 |
---|---|---|
committer | Anthony Roussel <anthony@roussel.dev> | 2024-03-22 12:52:24 +0100 |
commit | 65759dbf08519483c1d2a311a8fd2bc715b2a3f4 (patch) | |
tree | 0577abcb717a921a9cc385db374465f154e751bf /pkgs/servers/http | |
parent | 7b7a71ab01ef172028c3a834c8c8a0783f1632d0 (diff) |
apacheHttpdPackages.mod_perl: add passthru.updateScript
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r-- | pkgs/servers/http/apache-modules/mod_perl/default.nix | 35 |
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 1c150b7f957b8..002cfef2505fc 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; + }; } |