From 04b591dc1de3270e60de72918bf1ba200e566f86 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Sat, 24 Aug 2024 12:46:13 +0200 Subject: devShell: can we have debuggers? macos: we have debuggers at home (the debuggers at home: entitled little brats) Change-Id: Iefd4b5880da97846a81d601db05d2b46530a2b58 --- package.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'package.nix') 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 = '' -- cgit v1.2.3