blob: 293a8112007bf37bc6467210cb2edaa2bfc32285 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ writeShellApplication
, klipper
, python3
, gnumake
}: writeShellApplication {
name = "klipper-genconf";
runtimeInputs = [
python3
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
'';
}
|