Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let
- pkgs = import <nixpkgs> { };
- pkgsCross = import <nixpkgs> {
- crossSystem = pkgs.lib.systems.examples.aarch64-multiplatform;
- };
- in pkgsCross.mkShell {
- buildInputs = with pkgsCross; [ stdenv.cc.libc.static ];
- nativeBuildInputs = with pkgsCross.buildPackages; [
- bc
- bison
- dtc
- flex
- hexedit
- lrzsz
- lzop
- minicom
- ncurses
- openssl
- stdenv.cc
- ubootTools
- ];
- depsBuildBuild = [ pkgsCross.buildPackages.pkgconfig ];
- hardeningDisable = [ "all" ];
- ARCH = "arm64";
- CROSS_COMPILE = "aarch64-unknown-linux-gnu-";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement