Cross compile for Raspberry PI

To ignore the global environment as best as possible, use --pure.

Better just not use nix-env at all. See Depreciate the use of nix-env to install packages?

You can make it only include binaries using buildEnv’s pathsToLink.

Which of its tools do you need installed globally though? If you’re compiling things outside of Nix, use nix-shells.