I haven't tested this under the full Nix sandbox, so it may still have some impurities.
If you have rustup installed and you want to build the ArrayFire Rust bindings impurely, just remember to set the AF_PATH environment variable to the output path resulting from building arrayfire.nix.