diff options
author | John Ericson <git@JohnEricson.me> | 2018-10-23 20:21:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-23 20:21:48 -0400 |
commit | b71389aefbd9119ee9aaa454d2c8eae0f870b9f9 (patch) | |
tree | 0c913c902e431529b81b5d0cd133c979ec61f143 /doc/functions | |
parent | b41f8936b9326c10178e48ddc8f94c3c17af22a2 (diff) | |
parent | a5c4642ddf03f792c29764c53725f9b04e06decd (diff) |
Merge pull request #47430 from roberth/nixpkgs-extend
pkgs.extend for adding overlays
Diffstat (limited to 'doc/functions')
-rw-r--r-- | doc/functions/overrides.xml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/functions/overrides.xml b/doc/functions/overrides.xml index 021c4b41c360..1bd90d2a0c76 100644 --- a/doc/functions/overrides.xml +++ b/doc/functions/overrides.xml @@ -6,8 +6,14 @@ <para> Sometimes one wants to override parts of <literal>nixpkgs</literal>, e.g. - derivation attributes, the results of derivations or even the whole package - set. + derivation attributes, the results of derivations. + </para> + + <para> + These functions are used to make changes to packages, returning only single + packages. <link xlink:href="#chap-overlays">Overlays</link>, on the other + hand, can be used to combine the overridden packages across the entire + package set of Nixpkgs. </para> <section xml:id="sec-pkg-override"> @@ -25,6 +31,9 @@ <para> Example usages: <programlisting>pkgs.foo.override { arg1 = val1; arg2 = val2; ... }</programlisting> +<!-- TODO: move below programlisting to a new section about extending and overlays + and reference it + --> <programlisting> import pkgs.path { overlays = [ (self: super: { foo = super.foo.override { barSupport = true ; }; |