-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
53 lines (48 loc) · 1.35 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
description = "Denbeigh's customised Neovim";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
denbeigh-ci = {
url = "github:denbeigh2000/ci";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs = { self, nixpkgs, flake-utils, nixvim, denbeigh-ci }:
let
overlay = final: prev: {
neovim = (import ./default.nix {
inherit nixvim;
pkgs = prev;
});
};
in
{
overlays.default = overlay;
} // flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
# NOTE: This is referred to by nixvim, and appears to not exist in
# nixpkgs. Fix this if we ever start writing C#...
(final: prev: { csharp-ls = null; })
overlay
];
};
in
{
ci = denbeigh-ci.lib.mkCIConfig { inherit self pkgs; };
packages = with pkgs; {
inherit neovim;
default = neovim;
ci-tool = denbeigh-ci.packages.${system}.tool;
};
});
}