diff --git a/nix/nix-1p/README.md b/nix/nix-1p/README.md index 665a49d9d..620fe6138 100644 --- a/nix/nix-1p/README.md +++ b/nix/nix-1p/README.md @@ -29,6 +29,9 @@ important is missing. - [`pkgs` itself](#pkgs-itself) - [Derivations](#derivations) - [Nix Idioms](#nix-idioms) + - [File lambdas](#file-lambdas) + - [`callPackage`](#callpackage) + - [Overrides / Overlays](#overrides--overlays) @@ -253,9 +256,10 @@ This is often convenient, especially because inherit supports multiple variables at the same time as well as "inheritance" from other attribute sets: ```nix -inherit name age; # equivalent to `name = name; age = age;` - -inherit (otherAttrs) email; # equivalent to `email = otherAttrs.email`; +{ + inherit name age; # equivalent to `name = name; age = age;` + inherit (otherAttrs) email; # equivalent to `email = otherAttrs.email`; +} ``` ## `with` statements