.gitea | ||
.reuse | ||
LICENSES | ||
packages/zephyr-sdk | ||
shells | ||
.editorconfig | ||
.envrc | ||
.gitignore | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
README.md |
Nix Zephyr SDK
Nix Flake Collection for Zephyr SDK Toolchain
Description
This repository provides a Nix Flake collection for the Zephyr SDK toolchain. The Zephyr SDK is a collection of tools and libraries for developing applications for the Zephyr RTOS. This Nix Flake makes it easy to install and manage the Zephyr SDK toolchain in a reproducible manner across different systems.
Features
- Easy installation of Zephyr SDK toolchain using Nix.
- Reproducible builds to ensure consistent behavior across different systems.
- Flexible configurations to suit various development environments.
- Ability to pin specific versions of Zephyr SDK.
- Support for multiple platforms including Linux and macOS.
Prerequisites
Installation
Firstly, make sure you have Nix with flakes support enabled. Then you can add this flake as an input to your own flake, or install the tools globally.
Activating the Flake
To use this flake in your own project:
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
zephyr-sdk.url = "git+https://code.srx.dev/srx/nix-zephyr-sdk";
};
outputs = { self, zephyr-sdk, nixpkgs }: {
devShells.default = zephyr-sdk.devShells.zephyr;
};
}
Direct Installation
To install the Zephyr SDK globally:
nix profile install git+https://code.srx.dev/srx/nix-zephyr-sdk
Usage
Once installed, the Zephyr SDK tools should be available in your shell. For example, to build a Zephyr application:
west build -b <BOARD> <SOURCE_DIRECTORY>
Please consult the Zephyr documentation for full usage instructions.
Contributing
Contributions are welcome! Please submit Pull Requests or Issues to help improve the project.
License
This project follows the REUSE Specification and is licensed under the MIT License - see the LICENSE file for details.