Python tkinter not available on linux

as usual when working with nix i just spent an hour trying to enable tkinter in python311 by overriding it with { x11Support = true; <other deps...> } and after reading source carefully turns out (if i understand correctly) x11Support only does something if its an Apple darwin system???

why is this the case? google says tkinter supports linux

should i open an issue on nixpkgs?

P.S. python311full was building too long
P.S. this is also the case in 25.05 (link above is 24.05)

tldr use python3Full if on stable and python3Packages.tkinter if on unstable.

I don’t believe it only does something on darwin. This part:

Should change the build environment in a way that’s (or at least may be) automatically picked up by the build system.

1 Like

thx guys for quick response, no override and pythonpackages.tkinter worked

also yea ur probably right on buildinput affecting the build