about summary refs log tree commit diff
path: root/pkgs/servers/klipper/klipper-genconf.nix
diff options
context:
space:
mode:
authorVan Tuan Vo2022-03-21 21:04:23 +0100
committerVan Tuan Vo2022-03-21 21:51:10 +0100
commitc49f15e87b09fc26b6150dbf48e26d1381460f74 (patch)
tree25974c409f8bc58ac98ee504c96ced3ec16e8038 /pkgs/servers/klipper/klipper-genconf.nix
parent72871a3596632c150fb896061661264f29fdada6 (diff)
klipper-firmware: Fix IFD error and minor refactoring
Diffstat (limited to 'pkgs/servers/klipper/klipper-genconf.nix')
-rw-r--r--pkgs/servers/klipper/klipper-genconf.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/servers/klipper/klipper-genconf.nix b/pkgs/servers/klipper/klipper-genconf.nix
index 52c0d1e14216..42eb519e8c19 100644
--- a/pkgs/servers/klipper/klipper-genconf.nix
+++ b/pkgs/servers/klipper/klipper-genconf.nix
@@ -8,13 +8,12 @@
   runtimeInputs = [
     python2
     pkgsCross.avr.stdenv.cc
+    gnumake
   ];
   text = ''
     CURRENT_DIR=$(pwd)
     TMP=$(mktemp -d)
-    pushd ${klipper.src}
-    ${gnumake}/bin/make OUT="$TMP" KCONFIG_CONFIG="$CURRENT_DIR/config" menuconfig
-    popd
+    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