mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
doc: use evaluating instead of iterating
This commit is contained in:
parent
0c738e2e18
commit
16448f9e76
1 changed files with 4 additions and 4 deletions
|
@ -50,10 +50,10 @@
|
||||||
# is used here as a substitute attribute name for `packages`. The problem
|
# is used here as a substitute attribute name for `packages`. The problem
|
||||||
# with `packages` is that it makes operations like `nix flake show
|
# with `packages` is that it makes operations like `nix flake show
|
||||||
# nixpkgs` unusably slow due to the sheer number of packages the Nix CLI
|
# nixpkgs` unusably slow due to the sheer number of packages the Nix CLI
|
||||||
# needs to iterate through. But when the Nix CLI sees a `legacyPackages`
|
# needs to evaluate. But when the Nix CLI sees a `legacyPackages`
|
||||||
# attribute it displays `omitted` instead of iterating through all
|
# attribute it displays `omitted` instead of evaluating all packages,
|
||||||
# packages, which keeps `nix flake show` on Nixpkgs reasonably fast,
|
# which keeps `nix flake show` on Nixpkgs reasonably fast, though less
|
||||||
# though less information rich.
|
# information rich.
|
||||||
legacyPackages = forAllSystems (system: import ./. { inherit system; });
|
legacyPackages = forAllSystems (system: import ./. { inherit system; });
|
||||||
|
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue