From: Gabriel Huber <mail@gabrielhuber.at>
Date: Sun, 12 Feb 2023 16:41:14 +0000
Subject: Fix the nim root in nim-gdb

Forwarded: not-needed
---
 bin/nim-gdb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/nim-gdb b/bin/nim-gdb
index d4d60e4..4c98e0e 100755
--- a/bin/nim-gdb
+++ b/bin/nim-gdb
@@ -10,7 +10,7 @@ which readlink > /dev/null || (echo "readlink not in PATH."; exit 1)
 if [[ $(uname -s) == Darwin || $(uname -s) == *BSD ]]; then
   NIM_SYSROOT=$(dirname $(dirname $(readlink -f $(which nim))))
 else
-  NIM_SYSROOT=$(dirname $(dirname $(readlink -e $(which nim))))
+  NIM_SYSROOT=$(dirname $(dirname $(readlink -e $(which nim))))/lib/nim
 fi
 
 # Find out where the pretty printer Python module is
