Skip to content

Instantly share code, notes, and snippets.

@bgamari
Last active February 11, 2019 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bgamari/9063bbba365099dea2bacce475aab71e to your computer and use it in GitHub Desktop.
Save bgamari/9063bbba365099dea2bacce475aab71e to your computer and use it in GitHub Desktop.
let
nixpkgs = import <nixpkgs> {
crossSystem = { config = "aarch64-unknown-linux-gnu"; };
};
in
nixpkgs.buildEnv {
name = "aarch64-cross-compiler";
paths = with nixpkgs; [ gmp ncurses buildPackages.gcc buildPackages.binutils ];
}
@bgamari
Copy link
Author

bgamari commented Feb 11, 2019

nix build -f cross.nix
PATH=$(pwd)/result/bin:$PATH ./configure --target=aarch64-unknown-linux-gnu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment