Nix Flake Collection for Zephyr SDK Toolchain https://github.com/zephyrproject-rtos/sdk-ng
Find a file
2023-10-03 16:16:10 +02:00
.gitea first commit 2023-09-11 17:33:19 +02:00
.reuse first commit 2023-09-11 17:33:19 +02:00
LICENSES first commit 2023-09-11 17:33:19 +02:00
packages/zephyr-sdk return to the original packaging format without FHS 2023-10-03 16:16:10 +02:00
shells added python dependencies for west 2023-09-15 19:21:14 +02:00
.editorconfig first commit 2023-09-11 17:33:19 +02:00
.envrc first commit 2023-09-11 17:33:19 +02:00
.gitignore first commit 2023-09-11 17:33:19 +02:00
default.nix first commit 2023-09-11 17:33:19 +02:00
flake.lock first commit 2023-09-11 17:33:19 +02:00
flake.nix first commit 2023-09-11 17:33:19 +02:00
README.md first commit 2023-09-11 17:33:19 +02:00

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.