refactor: use lib.optionals instead of if...then...else...

This commit is contained in:
Ryan Yin
2024-03-08 22:53:49 +08:00
parent 54c2240be6
commit 3247e4a8e6
5 changed files with 129 additions and 136 deletions
+1 -3
View File
@@ -129,9 +129,7 @@
(ripgrep.override {withPCRE2 = true;}) # recursively searches directories for a regex pattern
]
++ (
if pkgs.stdenv.isDarwin
then []
else [
lib.optionals pkgs.stdenv.isLinux [
#-- verilog / systemverilog
verible
gdb