Commit Graph

3 Commits

Author SHA1 Message Date
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
kenshin
5ae544390a ssh-mitm: 3.0.2 → 4.1.1
* Hash update
* Add tkinter dependency in propagatedBuildInputs and remove setuptools from
  propagatedBuildInputs, add to natievBuildInputs
* Format using nixfmt so nix is parsable by GitHub CI/CD ??
* Fix python3Packages to python3.pkgs
* Fix for ssh-mitm askpass
* Workaround for darwin users
* Import stdenv missing
* Fix stdenv.isDarwin
* Apply fix from fabaff's review (man still missing)
* Attempt to add man pages
* Override paramiko, patch test_config for paramiko 3.11 (+), due to deprecated
  pytest setup method
2024-05-15 14:46:36 +02:00
Fabian Affolter
b5ae7370bb ssh-mitm: move to top level 2023-05-16 14:27:07 +02:00