diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-11-16 19:27:13 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-11-16 23:32:25 -0600 |
| commit | 9805cd20d7106082d9a337a1104b4c857f91b514 (patch) | |
| tree | 4b56db666a5c9fd9820a407a8cfe91c7cd618e04 | |
| parent | e33c30734b475879318b4f5c178a2f3bf2090bbb (diff) | |
Add U-Boot build dependencies to flake.nix
| -rw-r--r-- | nix/flake.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nix/flake.nix b/nix/flake.nix index ac8e4b8..582beda 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -5,11 +5,15 @@ in { devShells."${system}".default = pkgs.mkShell { buildInputs = with pkgs; [ + openssl SDL2 ]; nativeBuildInputs = with pkgs; [ + bc binutils + bison + flex gcc gcc-arm-embedded gdb @@ -22,6 +26,9 @@ ]; shellHook = '' + # U-Boot + export CROSS_COMPILE=arm-none-eabi- + export MAKEFLAGS="AR=gcc-ar" export CXXFLAGS="-O3 -flto $(pkg-config --cflags sdl2)" export LDFLAGS="-O3 -flto $(pkg-config --libs sdl2)" |
