zephyr-nix/flake.nix

37 lines
858 B
Nix
Raw Normal View History

2024-02-06 02:52:10 +00:00
{
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
{
2024-02-08 23:38:40 +00:00
checks = self.packages;
2024-02-06 02:52:10 +00:00
packages =
forAllSystems
2024-02-06 06:25:00 +00:00
(
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
builtins.removeAttrs
(pkgs.callPackage ./. {
zephyr-src = zephyr;
inherit pyproject-nix;
}) [ "override" "overrideDerivation" ]
);
2024-02-06 02:52:10 +00:00
}
);
}