From 7aee6589717e48d25d53663e5311a5adb933aeec Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 24 Apr 2025 02:15:19 +0200 Subject: [PATCH] doc: Add brief comments to the components Users can access these through the `lib.makeComponents` return value, so it's helpful to briefly explain some of them. This doesn't replace `meta.description`, but supplements it. (TODO: improve `meta.description`) --- packaging/components.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packaging/components.nix b/packaging/components.nix index 6351ac712..86da807fd 100644 --- a/packaging/components.nix +++ b/packaging/components.nix @@ -350,18 +350,33 @@ in nix-cmd = callPackage ../src/libcmd/package.nix { }; + /** + The Nix command line interface. Note that this does not include its tests, whereas `nix-everything` does. + */ nix-cli = callPackage ../src/nix/package.nix { version = fineVersion; }; nix-functional-tests = callPackage ../tests/functional/package.nix { version = fineVersion; }; + /** + The manual as would be published on https://nix.dev/reference/nix-manual + */ nix-manual = callPackage ../doc/manual/package.nix { version = fineVersion; }; + /** + Doxygen pages for C++ code + */ nix-internal-api-docs = callPackage ../src/internal-api-docs/package.nix { version = fineVersion; }; + /** + Doxygen pages for the public C API + */ nix-external-api-docs = callPackage ../src/external-api-docs/package.nix { version = fineVersion; }; nix-perl-bindings = callPackage ../src/perl/package.nix { }; + /** + Combined package that has the CLI, libraries, and (assuming non-cross, no overrides) it requires that all tests succeed. + */ nix-everything = callPackage ../packaging/everything.nix { } // { # Note: no `passthru.overrideAllMesonComponents` etc # This would propagate into `nix.overrideAttrs f`, but then discard