fix(nix/flake): adding the condition to add valgrind to packages only on linux

This commit is contained in:
Raphael 2026-03-09 20:17:48 +01:00
parent 459ead9573
commit c7139eada6
No known key found for this signature in database

View file

@ -35,7 +35,7 @@
in in
{ {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
name = "libasm-42"; name = "drquine-42";
buildInputs = buildInputs =
with pkgs; with pkgs;
[ [
@ -49,19 +49,10 @@
lldb lldb
coreutils coreutils
xxd xxd
valgrind
clang-tools clang-tools
asm-lsp asm-lsp
] ]
++ ( ++ (if pkgs.stdenv.isLinux then [ valgrind strace ] else []);
if pkgs.stdenv.isLinux then
[
strace
valgrind
]
else
[ ]
);
shellHook = '' shellHook = ''
export AS=nasm export AS=nasm