2022-03-21 17:50:08 +01:00
|
|
|
{ writeShellApplication
|
|
|
|
, klipper
|
2022-11-26 01:36:27 +01:00
|
|
|
, python3
|
2022-03-21 17:50:08 +01:00
|
|
|
, gnumake
|
|
|
|
, pkgsCross
|
|
|
|
}: writeShellApplication {
|
|
|
|
name = "klipper-genconf";
|
|
|
|
runtimeInputs = [
|
2022-11-26 01:36:27 +01:00
|
|
|
python3
|
2022-03-21 17:50:08 +01:00
|
|
|
pkgsCross.avr.stdenv.cc
|
2022-03-21 21:04:23 +01:00
|
|
|
gnumake
|
2022-03-21 17:50:08 +01:00
|
|
|
];
|
|
|
|
text = ''
|
|
|
|
CURRENT_DIR=$(pwd)
|
|
|
|
TMP=$(mktemp -d)
|
2022-03-21 21:04:23 +01:00
|
|
|
make -C ${klipper.src} OUT="$TMP" KCONFIG_CONFIG="$CURRENT_DIR/config" menuconfig
|
2022-03-21 17:50:08 +01:00
|
|
|
rm -rf "$TMP" config.old
|
|
|
|
printf "\nYour firmware configuration for klipper:\n\n"
|
|
|
|
cat config
|
|
|
|
'';
|
|
|
|
}
|