34 lines
729 B
Nix
34 lines
729 B
Nix
|
{
|
||
|
description = "Build Zephyr projects on Nix";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
|
||
|
pyproject-nix.url = "github:nix-community/pyproject.nix";
|
||
|
|
||
|
zephyr.url = "github:zephyrproject-rtos/zephyr/v3.5.0";
|
||
|
zephyr.flake = false;
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, zephyr, pyproject-nix }: (
|
||
|
let
|
||
|
inherit (nixpkgs) lib;
|
||
|
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
|
||
|
in
|
||
|
{
|
||
|
packages =
|
||
|
forAllSystems
|
||
|
(
|
||
|
system:
|
||
|
let
|
||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||
|
in
|
||
|
pkgs.callPackages ./. {
|
||
|
zephyr-src = zephyr;
|
||
|
inherit pyproject-nix;
|
||
|
}
|
||
|
);
|
||
|
}
|
||
|
);
|
||
|
}
|