-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
๐ dont import gcc on darwin for rust
- Loading branch information
Showing
2 changed files
with
77 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
|
||
#-- rust | ||
cargo | ||
rustc | ||
rust-analyzer | ||
rustfmt | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,87 @@ | ||
{pkgs, ...}: { | ||
home.packages = with pkgs; [ | ||
# c | ||
gcc # ๆไปถ้่ฆ | ||
# c/c++ tools with clang-tools, the unwrapped version won't | ||
# add alias like `cc` and `c++`, so that it won't conflict with gcc | ||
# llvmPackages.clang-unwrapped | ||
clang-tools | ||
gnumake | ||
# ๆฅ่ฏขๆไปถๅ ๅฎนไฝฟ็จ | ||
ripgrep | ||
home.packages = with pkgs; | ||
[ | ||
# c | ||
# gcc # ๆไปถ้่ฆ | ||
# c/c++ tools with clang-tools, the unwrapped version won't | ||
# add alias like `cc` and `c++`, so that it won't conflict with gcc | ||
# llvmPackages.clang-unwrapped | ||
# clang-tools | ||
gnumake | ||
# ๆฅ่ฏขๆไปถๅ ๅฎนไฝฟ็จ | ||
ripgrep | ||
|
||
#-- python | ||
nodePackages.pyright | ||
(python311.withPackages ( | ||
ps: | ||
with ps; [ | ||
pip | ||
ruff-lsp | ||
black # python formatter | ||
] | ||
)) | ||
#-- python | ||
nodePackages.pyright | ||
(python311.withPackages ( | ||
ps: | ||
with ps; [ | ||
pip | ||
ruff-lsp | ||
black # python formatter | ||
] | ||
)) | ||
|
||
#-- nix | ||
nil | ||
# rnix-lsp # has been remove | ||
statix # Lints and suggestions for the nix programming language | ||
deadnix # Find and remove unused code in .nix source files | ||
alejandra # Nix Code Formatter | ||
#-- nix | ||
nil | ||
# rnix-lsp # has been remove | ||
statix # Lints and suggestions for the nix programming language | ||
deadnix # Find and remove unused code in .nix source files | ||
alejandra # Nix Code Formatter | ||
|
||
#-- go | ||
go | ||
gomodifytags | ||
iferr # generate error handling code for go | ||
impl # generate function implementation for go | ||
gotools # contains tools like: godoc, goimports, etc. | ||
gopls # go language server | ||
delve # go debugger | ||
#-- go | ||
go | ||
gomodifytags | ||
iferr # generate error handling code for go | ||
impl # generate function implementation for go | ||
gotools # contains tools like: godoc, goimports, etc. | ||
gopls # go language server | ||
delve # go debugger | ||
|
||
#-- lua | ||
stylua | ||
lua-language-server | ||
#-- lua | ||
stylua | ||
lua-language-server | ||
|
||
#-- rust | ||
rust-analyzer | ||
cargo # rust package manager | ||
rustfmt | ||
#-- rust | ||
rust-analyzer | ||
cargo # rust package manager | ||
rustfmt | ||
|
||
#-- misc | ||
marksman # lsp for markdown | ||
markdown-oxide # lsp for markdown | ||
glow # markdown preview | ||
taplo # TOML language server / formatter / validator | ||
nodePackages.yaml-language-server | ||
# sqlfluff # SQL linter | ||
actionlint # GitHub Actions linter | ||
buf-language-server # bufls | ||
tree-sitter # common language parser/highlighter | ||
nodePackages.prettier # common code formatter | ||
lazygit | ||
#-- misc | ||
marksman # lsp for markdown | ||
markdown-oxide # lsp for markdown | ||
glow # markdown preview | ||
taplo # TOML language server / formatter / validator | ||
nodePackages.yaml-language-server | ||
# sqlfluff # SQL linter | ||
actionlint # GitHub Actions linter | ||
buf-language-server # bufls | ||
tree-sitter # common language parser/highlighter | ||
nodePackages.prettier # common code formatter | ||
lazygit | ||
|
||
#-- Cloud | ||
nodePackages.dockerfile-language-server-nodejs | ||
# terraform # install via brew on macOS | ||
terraform-ls | ||
hadolint # Dockerfile linter | ||
helm-ls # helm lsp | ||
#-- Cloud | ||
nodePackages.dockerfile-language-server-nodejs | ||
# terraform # install via brew on macOS | ||
terraform-ls | ||
hadolint # Dockerfile linter | ||
helm-ls # helm lsp | ||
|
||
#-- frontend | ||
#javascript/typescript --# | ||
nodePackages.nodejs | ||
nodePackages.typescript | ||
nodePackages.typescript-language-server | ||
# html/css lsp | ||
nodePackages.vscode-langservers-extracted | ||
#-- frontend | ||
#javascript/typescript --# | ||
nodePackages.nodejs | ||
nodePackages.typescript | ||
nodePackages.typescript-language-server | ||
# html/css lsp | ||
nodePackages.vscode-langservers-extracted | ||
|
||
#-- bash | ||
nodePackages.bash-language-server | ||
shellcheck | ||
shfmt | ||
]; | ||
#-- bash | ||
nodePackages.bash-language-server | ||
shellcheck | ||
shfmt | ||
] | ||
++ lib.optional (!stdenv.isDarwin) [ | ||
gcc | ||
clang-tools | ||
]; | ||
} |