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