diff options
| author | adisbladis <adisbladis@gmail.com> | 2024-08-02 23:10:35 +1200 |
|---|---|---|
| committer | adisbladis <adisbladis@gmail.com> | 2024-08-03 12:18:56 +1200 |
| commit | e0816431a23a06692d86c0b545b4522b9a9bc939 (patch) | |
| tree | fa70edcddaf56bc605f2ecdf153b2d9ba162d67a /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | adb3cee87d7bc92c97100efc7e30aeb6301e5fb6 (diff) | |
treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by:
``` nix
with import <nixpkgs> { };
let
python' = python3.override {
packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337"; }); };
};
in python'.pkgs.python.pkgs.requests
```
which returns the _non_ overriden requests.
And the same with `self`:
```
with import <nixpkgs> { };
let
python' = python3.override {
self = python';
packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337"; }); };
};
in python'.pkgs.python.pkgs.requests
```
which returns the overriden requests.
This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
