[PATCH] all-packages: Add documentation for apacheHttpdPackagesFor

output of git format-patch HEAD^
From 690693f8791429c1c2e03476cac7fa62bec3bb04 Mon Sep 17 00:00:00 2001
From: Do Nix <um2iai+9g233t397b57k@sharklasers.com>
Date: Fri, 14 Feb 2025 19:09:46 +0100
Subject: [PATCH] all-packages: Add documentation for apacheHttpdPackagesFor

Documentation for pkgs.newScope and `lib.callPackagesWith` is missing
for the user to fully understand what that means, but that's
out of scope for this commit
---
 pkgs/top-level/all-packages.nix | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index fb3618d837a1..1e0d2df9221d 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -11158,6 +11158,25 @@ with pkgs;
   apacheHttpd_2_4 = callPackage ../servers/http/apache-httpd/2.4.nix { };
   apacheHttpd = apacheHttpd_2_4;
 
+  /**
+  Create an attributeset of packages built for the specified apache-httpd package.
+  Mostly contains apache-httpd modules (auth_mellon, ca, crl, ...).
+
+  # Parameters (positional)
+
+  1. `apacheHttpd`
+  The apache-httpd package to build packages for
+  
+  2. `self`
+  The scope to use when using `pkgs.newScope`. This should generally be the same value
+  as `apacheHttpd`.
+
+  # Examples
+
+  ```nix
+  myApachePackages = apachapacheHttpdPackagesFor apacheHttpd apaapacheHttpd
+  ```
+  */
   apacheHttpdPackagesFor = apacheHttpd: self: let callPackage = newScope self; in {
     inherit apacheHttpd;
     mod_auth_mellon = callPackage ../servers/http/apache-modules/mod_auth_mellon { };
-- 
2.47.2