16 lines
307 B
Nix
16 lines
307 B
Nix
{ pkgs ? import <nixpkgs> {}, libstm32cube, libstm32stdperiph }:
|
|
|
|
with pkgs;
|
|
mkShell {
|
|
TARGET_TRIPLET="arm-none-eabi";
|
|
STM32_CUBE_F1_PATH="${libstm32cube}";
|
|
STM32STDLIB = "${libstm32stdperiph}";
|
|
|
|
nativeBuildInputs = [
|
|
stlink
|
|
gcc-arm-embedded-10
|
|
libstm32cube
|
|
libstm32stdperiph
|
|
];
|
|
}
|