From ea0a1f72c5863e1093c6ba6e8ae83e4d0c2baed4 Mon Sep 17 00:00:00 2001 From: Serge Bazanski <q3k@q3k.org> Date: Sat, 13 May 2023 03:25:13 +0200 Subject: [PATCH] nix: fix openocd/gdb integration --- nix/shell.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/shell.nix b/nix/shell.nix index 5c2fb28d69..c170e4e277 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -21,4 +21,10 @@ in with nixpkgs; pkgs.mkShell { ncurses5 ]; + shellHook = '' + # For esp.py openocd integration. + export OPENOCD_SCRIPTS="${pkgs.openocd-esp32-bin}/share/openocd/scripts" + # For GDB to be able to find libpython2.7 (????). + export LD_LIBRARY_PATH="${pkgs.python2}/lib:$LD_LIBRARY_PATH" + ''; } -- GitLab