From 5ea809eaa00bbbd5394be4699669e2cb63db9199 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Sat, 24 Jan 2026 01:07:32 -0500 Subject: [PATCH] feat: add debug adapters to nix shell --- c/basic/nixpkgs/shell.nix | 5 ++++- c/make/nixpkgs/shell.nix | 5 ++++- python/pyproject/nixpkgs/basic/shell.nix | 5 ++++- python/pyproject/nixpkgs/cli/shell.nix | 5 ++++- rust/cargo-nightly/crane+fenix/shell.nix | 6 +++++- rust/cargo-nightly/nixpkgs+fenix/shell.nix | 6 +++++- rust/cargo-stable/crane/shell.nix | 8 ++++---- rust/cargo-stable/nixpkgs/shell.nix | 3 ++- 8 files changed, 32 insertions(+), 11 deletions(-) diff --git a/c/basic/nixpkgs/shell.nix b/c/basic/nixpkgs/shell.nix index 4d2f40d..50dca62 100644 --- a/c/basic/nixpkgs/shell.nix +++ b/c/basic/nixpkgs/shell.nix @@ -4,5 +4,8 @@ let inherit (pkgs) llvmPackages_21 ; in mkShell { - packages = [ llvmPackages_21.clang-tools ]; + packages = [ + llvmPackages_21.clang-tools + llvmPackages_21.lldb + ]; } diff --git a/c/make/nixpkgs/shell.nix b/c/make/nixpkgs/shell.nix index 4d2f40d..50dca62 100644 --- a/c/make/nixpkgs/shell.nix +++ b/c/make/nixpkgs/shell.nix @@ -4,5 +4,8 @@ let inherit (pkgs) llvmPackages_21 ; in mkShell { - packages = [ llvmPackages_21.clang-tools ]; + packages = [ + llvmPackages_21.clang-tools + llvmPackages_21.lldb + ]; } diff --git a/python/pyproject/nixpkgs/basic/shell.nix b/python/pyproject/nixpkgs/basic/shell.nix index dca9c0a..16a22d3 100644 --- a/python/pyproject/nixpkgs/basic/shell.nix +++ b/python/pyproject/nixpkgs/basic/shell.nix @@ -5,5 +5,8 @@ let inherit (pkgs) ; in mkShellNoCC { inputsFrom = [ python3.buildEnv.env ]; - packages = [ python3.pkgs.python-lsp-server ]; + packages = [ + python3.pkgs.python-lsp-server + python3.pkgs.debugpy + ]; } diff --git a/python/pyproject/nixpkgs/cli/shell.nix b/python/pyproject/nixpkgs/cli/shell.nix index dca9c0a..16a22d3 100644 --- a/python/pyproject/nixpkgs/cli/shell.nix +++ b/python/pyproject/nixpkgs/cli/shell.nix @@ -5,5 +5,8 @@ let inherit (pkgs) ; in mkShellNoCC { inputsFrom = [ python3.buildEnv.env ]; - packages = [ python3.pkgs.python-lsp-server ]; + packages = [ + python3.pkgs.python-lsp-server + python3.pkgs.debugpy + ]; } diff --git a/rust/cargo-nightly/crane+fenix/shell.nix b/rust/cargo-nightly/crane+fenix/shell.nix index e53fb11..92837d7 100644 --- a/rust/cargo-nightly/crane+fenix/shell.nix +++ b/rust/cargo-nightly/crane+fenix/shell.nix @@ -8,5 +8,9 @@ let toolchain = fenixPkgs.${fenixToolchain}.toolchain; craneLib = (crane.mkLib pkgs).overrideToolchain toolchain; in craneLib.devShell { - packages = [ fenixPkgs.rust-analyzer ]; + packages = [ + toolchain + fenixPkgs.rust-analyzer + pkgs.lldb_21 + ]; } diff --git a/rust/cargo-nightly/nixpkgs+fenix/shell.nix b/rust/cargo-nightly/nixpkgs+fenix/shell.nix index 42f8825..b9167c1 100644 --- a/rust/cargo-nightly/nixpkgs+fenix/shell.nix +++ b/rust/cargo-nightly/nixpkgs+fenix/shell.nix @@ -7,5 +7,9 @@ let fenixPkgs = fenix.packages.${pkgs.system}; toolchain = fenixPkgs.${fenixToolchain}.toolchain; in mkShellNoCC { - packages = [ toolchain fenixPkgs.rust-analyzer ]; + packages = [ + toolchain + fenixPkgs.rust-analyzer + pkgs.lldb_21 + ]; } diff --git a/rust/cargo-stable/crane/shell.nix b/rust/cargo-stable/crane/shell.nix index 7a34e46..191682f 100644 --- a/rust/cargo-stable/crane/shell.nix +++ b/rust/cargo-stable/crane/shell.nix @@ -1,10 +1,10 @@ { pkgs ? import {}, crane ? builtins.getFlake "github:ipetkov/crane" }: -let - inherit (pkgs) - rust-analyzer +let inherit (pkgs) + rust-analyzer + lldb_21 ; in (crane.mkLib pkgs).devShell { - packages = [ rust-analyzer ]; + packages = [ rust-analyzer lldb_21 ]; } diff --git a/rust/cargo-stable/nixpkgs/shell.nix b/rust/cargo-stable/nixpkgs/shell.nix index b5dd7fd..fd0554a 100644 --- a/rust/cargo-stable/nixpkgs/shell.nix +++ b/rust/cargo-stable/nixpkgs/shell.nix @@ -4,7 +4,8 @@ let inherit (pkgs) rustc cargo rust-analyzer + lldb_21 ; in mkShellNoCC { - packages = [ rustc cargo rust-analyzer ]; + packages = [ rustc cargo rust-analyzer lldb_21 ]; }