2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-24 13:53:24 +00:00
nixpkgs/pkgs/applications/gis
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
..
gmt
grass grass: 8.3.2 -> 8.4.0 2024-07-31 10:14:10 +02:00
qgis treewide: Pass self when overriding Python 2024-08-03 12:18:56 +12:00
qmapshack
spatialite-gui
spatialite-tools treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
tunnelx treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
udig treewide: throw on unsupported system src access 2024-04-05 02:30:42 +00:00
whitebox-tools treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
zombietrackergps treewide: sha256 -> hash attribute for gitlab.com fetchers 2024-07-13 22:28:37 +08:00