1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
nixpkgs/pkgs/by-name/ch
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
..
ch341eeprom
challenger
chance chance: init at 4.0.0 2024-07-16 10:02:39 +05:30
changelog-d
charm-freeze
charmcraft treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00
chatd chatd: init at 1.1.2 2024-07-08 13:28:21 -03:00
chatgpt-shell-cli
chawan chawan: 0-unstable-2024-03-01 -> 0-unstable-2024-07-14 2024-07-15 20:09:35 -04:00
cheese
chemacs2
chess-clock
chess-tui
chezmoi chezmoi: 2.50.0 -> 2.51.0 2024-07-16 14:17:32 +02:00
choose-gui
chow-centaur
chow-kick treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
chow-phaser treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
chow-tape-model treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
chromatic
chrysalis