nixpkgs/pkgs/applications/gis/qgis
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
..
default.nix treewide: remove unused lib (and other) arguments 2024-07-26 11:18:09 +02:00
ltr.nix treewide: remove unused lib (and other) arguments 2024-07-26 11:18:09 +02:00
set-pyqt-package-dirs-ltr.patch qgis-ltr: fix pyqt patch 2024-07-12 15:07:47 +02:00
set-pyqt-package-dirs.patch qgis: 3.36.3 -> 3.38.0 2024-06-24 10:06:15 +02:00
test.py
unwrapped-ltr.nix treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00
unwrapped.nix treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00