minico2-firmware/flake.nix

35 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2023-11-19 01:31:38 +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 rec {
devShells.zephyr =
artemist-packages.devShells.${system}.zephyr.override {
toolchains =
with artemist-packages.packages.${system}.zephyr.toolchains;
[ xtensa-espressif_esp32_zephyr-elf ];
modules =
with artemist-packages.packages.${system}.zephyr.modules; [
mbedtls
hal_espressif
];
2023-11-22 21:53:11 +00:00
extraPackages = with pkgs; [
esptool
(clang-tools.override { llvmPackages = llvmPackages_latest; })
];
2023-11-19 01:31:38 +00:00
};
devShells.default = devShells.zephyr;
formatter = pkgs.nixfmt;
});
}