2023-11-12 22:27:50 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
|
|
utils.url = "github:numtide/flake-utils";
|
|
|
|
artemist-packages = {
|
|
|
|
url = "git+https://git.mildlyfunctional.gay/artemist/packages.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.utils.follows = "utils";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
outputs = { self, nixpkgs, utils, artemist-packages }:
|
|
|
|
utils.lib.eachDefaultSystem (system:
|
|
|
|
let pkgs = import nixpkgs { inherit system; };
|
|
|
|
in {
|
|
|
|
devShells.zephyr =
|
|
|
|
artemist-packages.devShells.${system}.zephyr.override {
|
|
|
|
toolchains =
|
|
|
|
with artemist-packages.packages.${system}.zephyr.toolchains; [
|
|
|
|
arm-zephyr-eabi
|
|
|
|
riscv64-zephyr-elf
|
|
|
|
];
|
2023-11-13 06:52:43 +00:00
|
|
|
modules = with artemist-packages.packages.${system}.zephyr.modules;
|
|
|
|
[ mbedtls ];
|
2023-11-12 22:27:50 +00:00
|
|
|
};
|
|
|
|
formatter = pkgs.nixfmt;
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|