summary refs log tree commit diff
path: root/nixos/modules/config/system-path.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-09-17 15:45:10 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-09-17 15:56:37 +0200
commite636e0a5329f546ebcc603d56bb99a0d016370f8 (patch)
tree51b4185565f56b993a5ee71a4454871415170ed0 /nixos/modules/config/system-path.nix
parentec5b66eb4add9d494d8fb16f6899028750d317a2 (diff)
downloadnixpkgs-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar
nixpkgs-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar.gz
nixpkgs-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar.bz2
nixpkgs-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar.lz
nixpkgs-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar.xz
nixpkgs-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar.zst
nixpkgs-e636e0a5329f546ebcc603d56bb99a0d016370f8.zip
gdb: Look for debug info in /run/current-system/sw/lib/debug
The previous default was $out/lib/debug, which wasn't very useful.

This ensures that you can do

  environment.systemPackages = [ pkgs.hello.debug ];

to install debug info.
Diffstat (limited to 'nixos/modules/config/system-path.nix')
-rw-r--r--nixos/modules/config/system-path.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/config/system-path.nix b/nixos/modules/config/system-path.nix
index 3241780a3a7..748ada99be6 100644
--- a/nixos/modules/config/system-path.nix
+++ b/nixos/modules/config/system-path.nix
@@ -103,7 +103,8 @@ in
       [ "/bin"
         "/etc/xdg"
         "/info"
-        "/lib"
+        "/lib" # FIXME: remove
+        #"/lib/debug/.build-id" # enables GDB to find separated debug info
         "/man"
         "/sbin"
         "/share/applications"