Compare commits

...

6 Commits

Author SHA1 Message Date
36d278d0a2
flake/overlay: remove pkgs 2024-01-27 19:56:13 +01:00
6db8579d0b
get packages back 2024-01-27 19:52:01 +01:00
8f2b1b05e9
flake/overlay: remove pkgs 2024-01-27 19:44:40 +01:00
10b64505cb
flake/overlay: remove pkgs 2024-01-27 19:44:04 +01:00
81a8a3fb5d
flake/overlay: remove pkgs 2024-01-27 19:41:10 +01:00
237d5e6a66
flake: add overlay 2024-01-27 19:10:17 +01:00

View File

@ -12,7 +12,21 @@
supportedSystems = ["x86_64-linux" "aarch64-linux"]; supportedSystems = ["x86_64-linux" "aarch64-linux"];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems; forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;}); nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;});
pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs; additionalDeps = pkgs: [
pkgs.alejandra
pkgs.ccls
pkgs.gopls
pkgs.luaformatter
pkgs.nixd
pkgs.pyright
pkgs.rust-analyzer
pkgs.sumneko-lua-language-server
pkgs.svls
pkgs.texlab
pkgs.tree-sitter
pkgs.verible
pkgs.zls
];
in { in {
packages = forAllSystems (system: let packages = forAllSystems (system: let
pkgs = nixpkgsFor.${system}; pkgs = nixpkgsFor.${system};
@ -22,6 +36,7 @@
devShells = forAllSystems (system: let devShells = forAllSystems (system: let
pkgs = nixpkgsFor.${system}; pkgs = nixpkgsFor.${system};
vim = self.packages.${system};
in { in {
default = pkgs.mkShell { default = pkgs.mkShell {
nativeBuildInputs = [ nativeBuildInputs = [
@ -38,11 +53,20 @@
pkgs.tree-sitter pkgs.tree-sitter
pkgs.verible pkgs.verible
pkgs.zls pkgs.zls
(import ./nvim-lsp.nix {inherit pkgs;}) vim
]; ];
}; };
}); });
overlays = forAllSystems (system: let
pkgs = nixpkgsFor.${system};
in {
overlay = final: prev: {
inherit (self.packages.${system}) nvim;
inherit additionalDeps;
};
});
defaultPackage = forAllSystems (system: self.packages.${system}.nvim); defaultPackage = forAllSystems (system: self.packages.${system}.nvim);
}; };
} }