From 0aa88f2f492302d5c785ecce79d6b1e6efa7ee0d Mon Sep 17 00:00:00 2001 From: John Soo Date: Thu, 21 Apr 2022 10:12:22 -0700 Subject: [PATCH] Add debug symbols to nix-shell. --- shell.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell.nix b/shell.nix index 4d785cb..bbaa60d 100644 --- a/shell.nix +++ b/shell.nix @@ -32,4 +32,7 @@ ]; + shellHook = '' + export NIX_DEBUG_INFO_DIRS="${pkgs.curl.debug}/lib/debug:${pkgs.nixUnstable.debug}/lib/debug''${NIX_DEBUG_INFO_DIRS:+:$NIX_DEBUG_INFO_DIRS}" + ''; })