Unverified Commit 173a07ff authored by Silvan Mosberger's avatar Silvan Mosberger Committed by GitHub
Browse files

Merge pull request #260022 from samueltardieu/by-name-instructions

by-name: make the way of adding packages clearer
parents a5fb3c88 41acc257
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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: