diff --git a/envs/infinitime/README.md b/envs/infinitime/README.md index f5dbe87..15be5d1 100644 --- a/envs/infinitime/README.md +++ b/envs/infinitime/README.md @@ -19,3 +19,5 @@ $ make -j6 pinetime-app Note that the `ARM_NONE_EABI_TOOLCHAIN_PATH` is just `/usr` as everything is linked there. Further build instructions: https://github.com/InfiniTimeOrg/InfiniTime/blob/main/doc/buildAndProgram.md + +This `shell.nix` works with `direnv`. diff --git a/envs/infinitime/shell.nix b/envs/infinitime/shell.nix index 17f1ed6..7915f75 100644 --- a/envs/infinitime/shell.nix +++ b/envs/infinitime/shell.nix @@ -1,24 +1,23 @@ -{ pkgs ? import { - config.allowUnfree = true; -}, extraPkgs ? [] +{ + pkgs ? import { config.allowUnfree = true; }, + extraPkgs ? [] }: - -(pkgs.buildFHSUserEnv { - name = "infinitime-env"; - targetPkgs = pkgs: with pkgs; [ +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ gcc-arm-embedded-10 nrf5-sdk zlib cmake gcc10 + adafruit-nrfutil (python3.withPackages(python: [ python.cbor python.intelhex python.click python.cryptography python.imgtool + python.pillow ])) nodePackages.lv_font_conv ] ++ extraPkgs; - multiPkgs = null; -}).env +}