15 , firmwareConfig ? ./simulator.cfg
16 }: stdenv.mkDerivation rec {
17 name = "klipper-firmware-${mcu}-${version}";
18 version = klipper.version;
23 pkgsCross.avr.stdenv.cc
31 wxGTK32 # Required for bossac
34 preBuild = "cp ${firmwareConfig} ./.config";
42 "KCONFIG_CONFIG=${firmwareConfig}"
48 cp ./.config $out/config
49 cp out/klipper.bin $out/ || true
50 cp out/klipper.elf $out/ || true
51 cp out/klipper.uf2 $out/ || true
57 inherit (klipper.meta) homepage license;
58 description = "Firmware part of Klipper";
59 maintainers = with maintainers; [ vtuan10 ];
60 platforms = platforms.linux;