nixpkgs/pkgs/tools/nix
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
..
alejandra treewide: Remove the definite article from meta.description 2024-06-09 23:08:46 +02:00
dnadd treewide: add meta.mainProgram to packages with a single binary 2024-03-19 03:14:51 +01:00
fh treewide: Remove the definite article from meta.description 2024-06-09 23:08:46 +02:00
gridlock
info
nix-init treewide: add meta.mainProgram to packages with a single binary 2024-03-19 03:14:51 +01:00
nix-melt treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
nix-output-monitor nix-output-monitor: 2.1.2 -> 2.1.3 2024-07-28 21:38:18 +02:00
nix-query-tree-viewer treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
nix-script treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
nixci nixci: add rsrohitsingh682 as a maintainer 2024-07-25 13:05:04 +05:30
nixdoc nixdoc: 3.0.5 -> 3.0.7 2024-06-10 19:13:26 +00:00
nixel treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
nixos-generators nixos-generators: 1.7.0 -> 1.8.0 2023-09-26 20:28:46 +02:00
nixos-install-tools binlore: migrate override lore to package passthru 2024-07-04 11:15:05 -05:00
nixos-option treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
nixos-render-docs treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00
nixpkgs-hammering treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
nixpkgs-lint treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
npins treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
rnix-hashes treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
statix treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
zon2nix treewide: add meta.mainProgram to packages with a single binary 2024-03-19 03:14:51 +01:00
web-devmode.nix web-devmode: call as package 2024-07-26 13:43:59 -07:00