Advertisement
Guest User

Untitled

a guest
Mar 15th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. let
  2. pkgs = import <nixpkgs> { };
  3. pkgsCross = import <nixpkgs> {
  4. crossSystem = pkgs.lib.systems.examples.aarch64-multiplatform;
  5. };
  6. in pkgsCross.mkShell {
  7. buildInputs = with pkgsCross; [ stdenv.cc.libc.static ];
  8.  
  9. nativeBuildInputs = with pkgsCross.buildPackages; [
  10. bc
  11. bison
  12. dtc
  13. flex
  14. hexedit
  15. lrzsz
  16. lzop
  17. minicom
  18. ncurses
  19. openssl
  20. stdenv.cc
  21. ubootTools
  22. ];
  23.  
  24. depsBuildBuild = [ pkgsCross.buildPackages.pkgconfig ];
  25.  
  26. hardeningDisable = [ "all" ];
  27.  
  28. ARCH = "arm64";
  29. CROSS_COMPILE = "aarch64-unknown-linux-gnu-";
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement