nixpkgs/pkgs/servers/klipper/klipper-genconf.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
412 B
Nix
Raw Normal View History

{ writeShellApplication
, klipper
2022-11-26 00:36:27 +00:00
, python3
, gnumake
}: writeShellApplication {
name = "klipper-genconf";
runtimeInputs = [
2022-11-26 00:36:27 +00:00
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
'';
}