Building a python docker image in Nix

Probably not: Cross compilation — nix.dev documentation

macOS/Darwin is a special case, as not the whole OS is open-source. It’s only possible to cross compile between aarch64-darwin and x86_64-darwin . aarch64-darwin support was recently added, so cross compilation is barely tested.

You’ll need to build on a linux machine