doc: use idiomatic overlay names in the python manual example
An overlay by any other name would function just as well, but we generally use `self: super:` for the regular overlays, and `python-self: python-super`.
This commit is contained in:
parent
d373d80b12
commit
c3e2f98779
|
@ -1049,12 +1049,12 @@ If you want the whole of Nixpkgs to use your modifications, then you can use
|
||||||
```nix
|
```nix
|
||||||
let
|
let
|
||||||
pkgs = import <nixpkgs> {};
|
pkgs = import <nixpkgs> {};
|
||||||
newpkgs = import pkgs.path { overlays = [ (pkgsself: pkgssuper: {
|
newpkgs = import pkgs.path { overlays = [ (self: super: {
|
||||||
python27 = let
|
python38 = let
|
||||||
packageOverrides = self: super: {
|
packageOverrides = python-self: python-super: {
|
||||||
numpy = super.numpy_1_10;
|
numpy = python-super.numpy_1_18.3;
|
||||||
};
|
};
|
||||||
in pkgssuper.python27.override {inherit packageOverrides;};
|
in super.python38.override {inherit packageOverrides;};
|
||||||
} ) ]; };
|
} ) ]; };
|
||||||
in newpkgs.inkscape
|
in newpkgs.inkscape
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue