flake: add bundled package, remove nixd over unresolved CVE

This commit is contained in:
Asmir A 2024-03-16 19:06:45 +01:00
parent f042e08ecd
commit c055bd2a2f
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -15,8 +15,27 @@
in { in {
packages = forAllSystems (system: let packages = forAllSystems (system: let
pkgs = nixpkgsFor.${system}; pkgs = nixpkgsFor.${system};
neovim = import ./nvim-lsp.nix {inherit pkgs;};
in { in {
nvim = import ./nvim-lsp.nix {inherit pkgs;}; nvim = pkgs.symlinkJoin {
name = "nvim";
paths = with pkgs;
[
alejandra
ccls
gopls
luaformatter
pyright
rust-analyzer
sumneko-lua-language-server
svls
texlab
tree-sitter
verible
zls
]
++ [neovim];
};
}); });
devShells = forAllSystems (system: let devShells = forAllSystems (system: let
@ -28,7 +47,6 @@
pkgs.ccls pkgs.ccls
pkgs.gopls pkgs.gopls
pkgs.luaformatter pkgs.luaformatter
pkgs.nixd
pkgs.pyright pkgs.pyright
pkgs.rust-analyzer pkgs.rust-analyzer
pkgs.sumneko-lua-language-server pkgs.sumneko-lua-language-server
@ -46,26 +64,7 @@
pkgs = nixpkgsFor.${system}; pkgs = nixpkgsFor.${system};
in { in {
overlay = final: prev: { overlay = final: prev: {
nvim = pkgs.symlinkJoin { nvim = self.packages.${system}.nvim;
name = "nvim";
paths = with pkgs;
[
alejandra
ccls
gopls
luaformatter
nixd
pyright
rust-analyzer
sumneko-lua-language-server
svls
texlab
tree-sitter
verible
zls
]
++ [self.packages.${system}.nvim];
};
}; };
}); });
defaultPackage = forAllSystems (system: self.packages.${system}.nvim); defaultPackage = forAllSystems (system: self.packages.${system}.nvim);