nixpkgs/pkgs/applications/misc/tandoor-recipes
adisbladis e0816431a2 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.
2024-08-03 12:18:56 +12:00
..
common.nix tandoor-recipes: 1.5.12 -> 1.5.16 2024-04-09 22:19:18 +02:00
default.nix treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00
frontend.nix treewide: replace prefetch-yarn-deps with fixup-yarn-lock where necessary 2024-04-17 13:34:05 -04:00
pytest-xdist.patch tandoor-recipes: 1.5.12 -> 1.5.16 2024-04-09 22:19:18 +02:00
update.sh