diff options
author | Robert Hensing <robert@roberthensing.nl> | 2018-10-15 13:47:36 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2018-10-18 10:48:43 +0200 |
commit | 9b7654f6ff326a7e35b48ce3c54d7f8bb71d9a13 (patch) | |
tree | 7f7e370ec8a7c287e9c44eb7e5d70ebc7937f8d5 /doc/overlays.xml | |
parent | ba8b54fa4a91cd94e8c42095d4f82d4a93cd01d1 (diff) | |
download | nixlib-9b7654f6ff326a7e35b48ce3c54d7f8bb71d9a13.tar nixlib-9b7654f6ff326a7e35b48ce3c54d7f8bb71d9a13.tar.gz nixlib-9b7654f6ff326a7e35b48ce3c54d7f8bb71d9a13.tar.bz2 nixlib-9b7654f6ff326a7e35b48ce3c54d7f8bb71d9a13.tar.lz nixlib-9b7654f6ff326a7e35b48ce3c54d7f8bb71d9a13.tar.xz nixlib-9b7654f6ff326a7e35b48ce3c54d7f8bb71d9a13.tar.zst nixlib-9b7654f6ff326a7e35b48ce3c54d7f8bb71d9a13.zip |
nixpkgs docs: Point to pkgs.extend, pkgs.appendOverlays and improve override section
Diffstat (limited to 'doc/overlays.xml')
-rw-r--r-- | doc/overlays.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/overlays.xml b/doc/overlays.xml index 2decf9febe80..af1ab26b5e97 100644 --- a/doc/overlays.xml +++ b/doc/overlays.xml @@ -30,10 +30,16 @@ itself is given, then that is used. </para> <para> - This can be passed explicitly when importing nipxkgs, for example + This can be passed explicitly when importing nixpkgs, for example <literal>import <nixpkgs> { overlays = [ overlay1 overlay2 ]; }</literal>. </para> + <para> + Further overlays can be added by calling the + <literal>pkgs.extend</literal> or <literal>pkgs.appendOverlays</literal>, + although it is often preferable to avoid these functions, because they + recompute the Nixpkgs fixpoint, which is somewhat expensive to do. + </para> </listitem> <listitem> <para> |