Open fzakaria opened 1 week ago
I think it has to do with these lines: https://github.com/NixOS/nixpkgs/blob/da4d8527adf8a9924de870429300a48078b3b7ed/pkgs/development/interpreters/python/default.nix#L59
I had to overlay specifically python311
and not python3
;
It seems these hardcode the self rather than passing the current self.
You can .override
self
@Artturin I tried:
python311 = (super.python311.overrideAttrs (_: {
# name = "python-now";
NIX_CFLAGS_COMPILE = "-Wl,-z,now";
doCheck = false;
})).override { self = self.python311; };
That also fails. It's not clear what I need to override for self.
Here are some more overrides that fail:
((pkgs.python311.override { self = pkgs.python311; })
.withPackages (pp: with pp; [pkgs.pyperformance])).override { python = pkgs.python311;}
Describe the bug
I am overriding the CFLAGS of a Python interpreter.
When I do this, there is correctly the
BIND_NOW
attribute.When I combine this with either
withPackages
orbuildEnv
it seems to be not be picking up the custom pythonExpected behavior
I expect the same python to carry through to the
withPackages
Notify maintainers
@hexa @natsukium
Add a :+1: reaction to issues you find important.