nix-shell: Reproducible builds for #STM32 and #ESP32
https://dnedic.github.io/blog/nix-shell-embedded-development-environment/
@lupyuen besides gcc-arm-embedded, one can also utilize Nixpkgs' cross compilation support for fetching the toolchains. This is a shell.nix for playing around NuttX on BL602:
(import <nixpkgs> { crossSystem = { config = "riscv32-none-elf"; libc = "newlib"; gcc.arch = "rv32imafc"; gcc.abi = "ilp32f"; };}).callPackage ( { mkShell, kconfig-frontends }: mkShell { nativeBuildInputs = [ kconfig-frontends ]; buildInputs = [ ]; }) { }
@chuang Very cool! :-)
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.
@lupyuen besides gcc-arm-embedded, one can also utilize Nixpkgs' cross compilation support for fetching the toolchains. This is a shell.nix for playing around NuttX on BL602:
(import <nixpkgs> {
crossSystem = {
config = "riscv32-none-elf";
libc = "newlib";
gcc.arch = "rv32imafc";
gcc.abi = "ilp32f";
};
}).callPackage (
{ mkShell, kconfig-frontends }:
mkShell {
nativeBuildInputs = [ kconfig-frontends ];
buildInputs = [ ];
}
) { }