vgijssel / setup

Workstation and server setup
MIT License
8 stars 0 forks source link

feat: Multi-arch Python base image #614

Closed mvgijssel closed 7 months ago

mvgijssel commented 7 months ago

ref #451

nix-build test.nix
docker load < result && docker run --rm -it --platform linux/amd64 myimage:latest
> uname -a
Linux db2e968516f1 6.4.16-linuxkit #1 SMP PREEMPT Thu Nov 16 10:49:20 UTC 2023 x86_64 GNU/Linux
mvgijssel commented 7 months ago

Because cross compiling is very slow try:

  1. Use cachix to cache derivations so subsequent compilations go faster (https://discourse.nixos.org/t/armv7l-builds-on-cachix/788)
  2. Use binary cache for aarch64 as mentioned here (https://nixos.wiki/wiki/Nix_on_ARM)
  3. Use trick from https://nixos.wiki/wiki/Cross_Compiling