From fb213c323b5129b7d1886d793ceb3988e1b199e4 Mon Sep 17 00:00:00 2001 From: Ryan Rix Date: Mon, 25 Sep 2023 19:04:42 -0700 Subject: [PATCH] add build deps in shell.nix --- shell.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..91319763 --- /dev/null +++ b/shell.nix @@ -0,0 +1,31 @@ +{ pkgs ? import {} }: + +with pkgs; let + py4McuBoot = python3.withPackages (ps: with ps; [ + cbor + intelhex + click + cryptography + ]); +in mkShell { + packages = [ + gcc-arm-embedded-10 + nrf5-sdk + cmake + nodePackages.lv_font_conv + lv_img_conv + py4McuBoot + clang-tools + SDL2 + libpng + python3Packages.adafruit-nrfutil + ]; + + ARM_NONE_EABI_TOOLCHAIN_PATH="${gcc-arm-embedded-10}"; + NRF5_SDK_PATH="${nrf5-sdk}/share/nRF5_SDK"; + CMAKE_BUILD_TYPE="Release"; + BUILD_DFU=1; + BUILD_RESOURCES=1; + TARGET_DEVICE="PINETIME"; + +}