Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
19 lines
412 B
Nix
19 lines
412 B
Nix
{ 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
|
|
'';
|
|
}
|