TODOS: 1. Ensure memory.x has correct memory regions. 2. Add HAL loop delay.
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
inputs@{ ... }:
|
|
let
|
|
supportedSystems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
forAllSystems = inputs.nixpkgs.lib.genAttrs supportedSystems;
|
|
buildNixpkgs =
|
|
system:
|
|
import inputs.nixpkgs {
|
|
inherit system;
|
|
overlays = [ (import inputs.rust-overlay) ];
|
|
};
|
|
in
|
|
{
|
|
devShells = forAllSystems (
|
|
system:
|
|
let
|
|
pkgs = buildNixpkgs system;
|
|
|
|
rust-toolchain = pkgs.rust-bin.fromRustupToolchainFile ../rust-toolchain.toml;
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
gcc-arm-embedded-13
|
|
treefmt
|
|
nixpkgs-fmt
|
|
rust-toolchain
|
|
];
|
|
};
|
|
}
|
|
);
|
|
};
|
|
}
|