fix(nix/flake): adding the condition to add valgrind to packages only on linux
This commit is contained in:
parent
459ead9573
commit
c7139eada6
1 changed files with 2 additions and 11 deletions
13
flake.nix
13
flake.nix
|
|
@ -35,7 +35,7 @@
|
|||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
name = "libasm-42";
|
||||
name = "drquine-42";
|
||||
buildInputs =
|
||||
with pkgs;
|
||||
[
|
||||
|
|
@ -49,19 +49,10 @@
|
|||
lldb
|
||||
coreutils
|
||||
xxd
|
||||
valgrind
|
||||
clang-tools
|
||||
asm-lsp
|
||||
]
|
||||
++ (
|
||||
if pkgs.stdenv.isLinux then
|
||||
[
|
||||
strace
|
||||
valgrind
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
++ (if pkgs.stdenv.isLinux then [ valgrind strace ] else []);
|
||||
|
||||
shellHook = ''
|
||||
export AS=nasm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue