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
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue