Hello,
I’m trying to create a nix-shell with gcc that will cross-compile to arm. It works, but whenever I update nix, or change versions of GCC, I end up having to build it (GCC) from source, which takes quite a while.
Here’s my (simplified) default.nix
with import <nixpkgs> {};
let
arm = import <nixpkgs> { crossSystem.config = "armv7l-unknown-linux-musleabihf"; };
in
stdenv.mkDerivation {
name = "foo";
buildInputs = filter [
arm.gcc
];
}
This seems to be the case regardless of my choice of crossSystem, even if it’s one of the examples from the nixpkgs repo.
Are there pre-built cross compilers somewhere?
Thanks!