Document setup for macOS

This commit is contained in:
urob 2024-08-09 14:39:09 -04:00
parent d9eafd8109
commit 09be0ba78e
2 changed files with 10 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
inputs = {
# Pin to 23.11 to provide python38 dependency for sdk
# Pin this to 23.11 to provide py3.8 needed for the sdk-ng without building it ourselves
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
# Zephyr version determining which requirements.txt to use to install python dependencies
@ -14,13 +14,15 @@
};
outputs = { self, nixpkgs, zephyr-nix, ... }: let
# Set your system ("x86_64-linux", "aarch64-linux", "x86_64-darwin", or "aarch64-darwin")
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
zephyr = zephyr-nix.packages.${system};
in {
devShells.${system}.default = pkgs.mkShell {
packages = [
zephyr.hosttools
# zephyr.hosttools-nix
# (zephyr.pythonEnv.override {extraPackages = pkgs: [pkgs.pyyaml];})
zephyr.pythonEnv
zephyr.sdkFull
pkgs.cmake