nixpkgs/pkgs/applications/version-management/sourcehut
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
..
patches/redis-socket/core
builds.nix sourcehut.buildsrht: 0.89.13 -> 0.89.15 2024-04-09 23:06:18 +02:00
core.nix sourcehut.srht: 0.71.5 -> 0.71.8 2024-04-09 23:06:18 +02:00
default.nix treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00
fix-gqlgen-trimpath.nix sourcehut: fix-gqlgen-trimpath: conditionalize go generate 2024-04-09 23:06:17 +02:00
git.nix sourcehut.gitsrht: 0.85.7 -> 0.85.9 2024-04-09 23:06:18 +02:00
hg.nix sourcehut.hgsrht: 0.32.4 -> 0.33.0 2024-04-09 23:06:18 +02:00
hub.nix sourcehut.hubsrht: 0.17.5 -> 0.17.7 2024-04-09 23:06:28 +02:00
lists.nix sourcehut.listssrht: 0.57.14 -> 0.57.18 2024-04-09 23:06:28 +02:00
man.nix sourcehut.mansrht: 0.16.3 -> 0.16.5 2024-04-09 23:06:28 +02:00
meta.nix sourcehut.metasrht: 0.68.5 -> 0.69.8 2024-04-09 23:06:29 +02:00
pages.nix sourcehut.pagessrht: 0.15.4 -> 0.15.7 2024-04-09 23:25:38 +02:00
paste.nix sourcehut.pastesrht: 0.15.2 -> 0.15.4 2024-04-09 23:25:38 +02:00
scm.nix treewide: Remove ending period from meta.description 2024-06-09 23:04:51 +02:00
todo.nix sourcehut.todosrht: 0.75.6 -> 0.75.10 2024-04-09 23:25:39 +02:00
update.sh sourcehut: update.sh: bump gqlgenVersion on update too 2024-04-09 23:06:17 +02:00