forked from lix-project/nix-eval-jobs
Merge pull request #54 from jsoo1/add-debug-symbols-to-shell
Add debug symbols to nix-shell.
This commit is contained in:
commit
01dd2d0133
11
shell.nix
11
shell.nix
|
@ -13,9 +13,13 @@
|
|||
, srcDir ? null
|
||||
}:
|
||||
|
||||
(pkgs.callPackage ./default.nix {
|
||||
inherit srcDir;
|
||||
let
|
||||
inherit (pkgs) lib stdenv;
|
||||
nix = pkgs.nixUnstable;
|
||||
|
||||
in
|
||||
(pkgs.callPackage ./default.nix {
|
||||
inherit nix srcDir;
|
||||
}).overrideAttrs (old: {
|
||||
|
||||
src = null;
|
||||
|
@ -32,4 +36,7 @@
|
|||
|
||||
];
|
||||
|
||||
shellHook = lib.optionalString stdenv.isLinux ''
|
||||
export NIX_DEBUG_INFO_DIRS="${pkgs.curl.debug}/lib/debug:${nix.debug}/lib/debug''${NIX_DEBUG_INFO_DIRS:+:$NIX_DEBUG_INFO_DIRS}"
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue