Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compile issue under mac os #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hitsmaxft
Copy link

@hitsmaxft hitsmaxft commented Jun 16, 2024

  1. fix makefile compile error under darwin ; and move build target to root compile dir
  2. add a nix shell.nix for compile and developing strtt

@phryniszak
Copy link
Owner

phryniszak commented Jun 20, 2024

Thanks, looks good to me.
I have no way to verify mac build by I try to merge it anyway.

Could you please tell me what is the purpose of shell.nix with some references to nrf?

{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
  name = "nrf51-dev-environment";

  buildInputs = with pkgs; [
    inetutils
    openocd
    cmake
    ninja
    python3 # The nRF tools often require Python
    gcc-arm-embedded
  ];
  nativeBuildInputs = [
      pkgs.libusb1
  ];


  # Set the required environment variables
  shellHook = ''
  '';
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants