2022-03-21 17:50:08 +01:00
|
|
|
{ writeShellApplication
|
|
|
|
, klipper
|
|
|
|
, python2
|
|
|
|
, gnumake
|
|
|
|
, pkgsCross
|
|
|
|
}: writeShellApplication {
|
|
|
|
name = "klipper-genconf";
|
|
|
|
runtimeInputs = [
|
|
|
|
python2
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|