feat: add debug adapters to nix shell

This commit is contained in:
Kiana Sheibani 2026-01-24 01:07:32 -05:00
parent 13fb093d33
commit 5ea809eaa0
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
8 changed files with 32 additions and 11 deletions

View file

@ -4,5 +4,8 @@ let inherit (pkgs)
llvmPackages_21 llvmPackages_21
; ;
in mkShell { in mkShell {
packages = [ llvmPackages_21.clang-tools ]; packages = [
llvmPackages_21.clang-tools
llvmPackages_21.lldb
];
} }

View file

@ -4,5 +4,8 @@ let inherit (pkgs)
llvmPackages_21 llvmPackages_21
; ;
in mkShell { in mkShell {
packages = [ llvmPackages_21.clang-tools ]; packages = [
llvmPackages_21.clang-tools
llvmPackages_21.lldb
];
} }

View file

@ -5,5 +5,8 @@ let inherit (pkgs)
; ;
in mkShellNoCC { in mkShellNoCC {
inputsFrom = [ python3.buildEnv.env ]; inputsFrom = [ python3.buildEnv.env ];
packages = [ python3.pkgs.python-lsp-server ]; packages = [
python3.pkgs.python-lsp-server
python3.pkgs.debugpy
];
} }

View file

@ -5,5 +5,8 @@ let inherit (pkgs)
; ;
in mkShellNoCC { in mkShellNoCC {
inputsFrom = [ python3.buildEnv.env ]; inputsFrom = [ python3.buildEnv.env ];
packages = [ python3.pkgs.python-lsp-server ]; packages = [
python3.pkgs.python-lsp-server
python3.pkgs.debugpy
];
} }

View file

@ -8,5 +8,9 @@ let
toolchain = fenixPkgs.${fenixToolchain}.toolchain; toolchain = fenixPkgs.${fenixToolchain}.toolchain;
craneLib = (crane.mkLib pkgs).overrideToolchain toolchain; craneLib = (crane.mkLib pkgs).overrideToolchain toolchain;
in craneLib.devShell { in craneLib.devShell {
packages = [ fenixPkgs.rust-analyzer ]; packages = [
toolchain
fenixPkgs.rust-analyzer
pkgs.lldb_21
];
} }

View file

@ -7,5 +7,9 @@ let
fenixPkgs = fenix.packages.${pkgs.system}; fenixPkgs = fenix.packages.${pkgs.system};
toolchain = fenixPkgs.${fenixToolchain}.toolchain; toolchain = fenixPkgs.${fenixToolchain}.toolchain;
in mkShellNoCC { in mkShellNoCC {
packages = [ toolchain fenixPkgs.rust-analyzer ]; packages = [
toolchain
fenixPkgs.rust-analyzer
pkgs.lldb_21
];
} }

View file

@ -1,10 +1,10 @@
{ pkgs ? import <nixpkgs> {}, { pkgs ? import <nixpkgs> {},
crane ? builtins.getFlake "github:ipetkov/crane" crane ? builtins.getFlake "github:ipetkov/crane"
}: }:
let let inherit (pkgs)
inherit (pkgs)
rust-analyzer rust-analyzer
lldb_21
; ;
in (crane.mkLib pkgs).devShell { in (crane.mkLib pkgs).devShell {
packages = [ rust-analyzer ]; packages = [ rust-analyzer lldb_21 ];
} }

View file

@ -4,7 +4,8 @@ let inherit (pkgs)
rustc rustc
cargo cargo
rust-analyzer rust-analyzer
lldb_21
; ;
in mkShellNoCC { in mkShellNoCC {
packages = [ rustc cargo rust-analyzer ]; packages = [ rustc cargo rust-analyzer lldb_21 ];
} }