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