forked from lix-project/nix-eval-jobs
Only add debug symbols to shell on Linux
This commit is contained in:
parent
0aa88f2f49
commit
6ef1b314d7
12
shell.nix
12
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,7 +36,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}"
|
||||
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