nixpkgs/pkgs/by-name/ir
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
..
iredis treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
ironbar adwaita-icon-theme: Move from gnome scope to top-level 2024-07-01 08:26:46 +02:00
irpf irpf: 2024-1.2 -> 2024-1.3 2024-08-01 16:15:17 +00:00
irrd treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00
irust irust: init at 1.71.23 2024-06-02 15:00:22 -03:00