Overlays: Difference between revisions
imported>Artturin mNo edit summary |
imported>Nix add Overlays definition and manual link. add Cookbook and Nixpkgs categories |
||
Line 1: | Line 1: | ||
<blockquote>Overlays are Nix functions which accept two arguments, conventionally called self and super, and return a set of packages. ... Overlays are similar to other methods for customizing Nixpkgs, in particular the packageOverrides ... Indeed, packageOverrides acts as an overlay with only the super argument. It is therefore appropriate for basic use, but overlays are more powerful and easier to distribute.</blockquote> | |||
<cite>From the [https://nixos.org/manual/nixpkgs/stable/#sec-overlays-definition Nixpkgs manual]</cite> | |||
Overlays provide a method to extend and change nixpkgs. They replace constructs like <code>packageOverride</code> and <code>overridePackages</code>. | Overlays provide a method to extend and change nixpkgs. They replace constructs like <code>packageOverride</code> and <code>overridePackages</code>. | ||
Line 353: | Line 357: | ||
==== References ==== | ==== References ==== | ||
[[Category:Cookbook]] | |||
[[Category:Nixpkgs]] |