-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathflake.nix
34 lines (27 loc) · 965 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
description = "The Esbonio language server";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
lsp-devtools.url = "github:swyddfa/lsp-devtools";
lsp-devtools.inputs.nixpkgs.follows = "nixpkgs";
lsp-devtools.inputs.utils.follows = "utils";
};
outputs = { self, nixpkgs, lsp-devtools, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system ; overlays = [ self.overlays.default ];};
nvim-lspconfig = pkgs.callPackage ./docs/lsp/editors/nvim-lspconfig {};
in {
apps.nvim = {
type = "app";
program = "${nvim-lspconfig}/bin/nvim";
};
}) // {
overlays.default = self: super:
nixpkgs.lib.composeManyExtensions [
lsp-devtools.overlays.default
(import ./lib/esbonio/nix/esbonio-overlay.nix)
] self super;
};
}