Skip to content

Commit

Permalink
๐Ÿ› dont import gcc on darwin for rust
Browse files Browse the repository at this point in the history
  • Loading branch information
shelken committed Aug 3, 2024
1 parent 8361571 commit c5f6c43
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 71 deletions.
1 change: 1 addition & 0 deletions home/apps/dev/core.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#-- rust
cargo
rustc
rust-analyzer
rustfmt

Expand Down
147 changes: 76 additions & 71 deletions home/apps/neovim/packages.nix
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
];
}

0 comments on commit c5f6c43

Please sign in to comment.