aboutsummaryrefslogtreecommitdiff
path: root/package.nix
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-08-24 12:46:13 +0200
committereldritch horrors <pennae@lix.systems>2024-08-24 21:34:13 +0200
commit04b591dc1de3270e60de72918bf1ba200e566f86 (patch)
tree7eb139914b932f625b9ce02e867aaba2bddfc0a1 /package.nix
parentc5949bfe313a92aab0e4cf38ab2407b0ac922ce8 (diff)
devShell: can we have debuggers?
macos: we have debuggers at home (the debuggers at home: entitled little brats) Change-Id: Iefd4b5880da97846a81d601db05d2b46530a2b58
Diffstat (limited to 'package.nix')
-rw-r--r--package.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/package.nix b/package.nix
index 8bba81e38..73e98bc71 100644
--- a/package.nix
+++ b/package.nix
@@ -432,6 +432,10 @@ stdenv.mkDerivation (finalAttrs: {
pre-commit-checks,
contribNotice,
check-syscalls,
+
+ # debuggers
+ gdb,
+ rr,
}:
let
glibcFix = lib.optionalAttrs (buildPlatform.isLinux && glibcLocales != null) {
@@ -511,6 +515,8 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optional (pre-commit-checks ? enabledPackages) pre-commit-checks.enabledPackages
++ lib.optional (lib.meta.availableOn buildPlatform clangbuildanalyzer) clangbuildanalyzer
+ ++ lib.optional (!stdenv.isDarwin) gdb
+ ++ lib.optional (lib.meta.availableOn buildPlatform rr) rr
++ finalAttrs.checkInputs;
shellHook = ''