From 41acc25766fbc611cd10cb043bc7cab91d2fd088 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Mon, 9 Oct 2023 19:12:29 +0200 Subject: [PATCH] by-name: make the way of adding packages clearer --- pkgs/by-name/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/README.md b/pkgs/by-name/README.md index ba1bd8cb9861..fbb8b0dc05c1 100644 --- a/pkgs/by-name/README.md +++ b/pkgs/by-name/README.md @@ -3,6 +3,10 @@ The structure of this directory maps almost directly to top-level package attributes. This is the recommended way to add new top-level packages to Nixpkgs [when possible](#limitations). +Packages found in the named-based structure do not need to be explicitly added to the +`top-level/all-packages.nix` file unless they require overriding the default value +of an implicit attribute (see below). + ## Example The top-level package `pkgs.some-package` may be declared by setting up this file structure: