Cool thing about NixOS I got to use today: there are overlays defined by default in nixpkgs for: - Cross compilation (to many different archs) - Statically linked binaries (using musl) And they're composable! $ nix-shell -p pkgsCross.aarch64-multiplatform.pkgsStatic.curl
Recent use case: running the device tree compiler ("dtc") on my QNAP NAS to get a .dts from the DT exposed in sysfs. The package unfortunately required 2 lines of patching to build statically because they use a custom build system, but the fix was pretty trivial.