dev: Add debug symbols to shell

(cherry picked from commit b72191f8c1669bc8df242e8386014363d096fad4)
This commit is contained in:
Robert Hensing 2024-05-01 17:04:12 +02:00
parent 9d26e36b85
commit 9d05ce49e2

View file

@ -43,6 +43,15 @@
LIBCLANG_PATH
BINDGEN_EXTRA_CLANG_ARGS
;
NIX_DEBUG_INFO_DIRS =
let
# TODO: add to Nixpkgs lib
getDebug = pkg:
if pkg?debug then pkg.debug
else if pkg?lib then pkg.lib
else pkg;
in
"${getDebug config.packages.nix}/lib/debug";
buildInputs = [
config.packages.nix
];