Closed pedohorse closed 8 months ago
FTR, this also happens when using one inside environment.systemPackages:
environment.systemPackages = with pkgs; [
pkgs.allthepythons.packages.x86_64-linux."3.9.16"
....
Where "allthepythons" is an overlay within a flake:
overlay-nixpkgs-python = final: prev: {
allthepythons = import nixpkgs-python;
};
For some reason it uses .xz
in the url, while it should be https://www.python.org/ftp/python/3.8.18/Python-3.8.18.tgz.
This means something is wrong how overrides are applied, it's not passing the correct hash and the url.
Should be fixed on main, can you try?
It works now.
I'm not sure if using
.pkgs.something
is intended with these pythons, but i'm surely getting a strange error:to reproduce - just add
python.pkgs.wrapPython
to buildInputs of a shell (or any derivation), for example:and do
nix build .#test_python
whilenix build .#py
works fine and builds python from source or removing.pkgs.wrapPython
and leaving justpython
inbuildInputs
works fine tooI'm relatively new to the whole nix thing, so I have no idea if I'm doing something wrong
It does seem that for some reason it tries to build python38 again, even if i have just built it separately... and it has no network while trying to fetch sources, as if it was called from within build sandbox, but how is this possible??
P.S. my network is fine, i can access the url it tries to fetch, and i can build python38 from this repository from source without any issues