blob: a05e2d974b91b89f184586f2ff5bd538d39f1613 (
plain)
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
|
{
description = "getchoo's neovim config";
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.0.tar.gz";
outputs = {
self,
nixpkgs,
}: let
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forSystem = system: fn: fn nixpkgs.legacyPackages.${system};
forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: forSystem system fn);
in {
checks = forAllSystems (pkgs: import ./checks.nix {inherit pkgs self;});
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = with pkgs; [
actionlint
# lua
lua-language-server
selene
stylua
# nix
self.formatter.${pkgs.system}
deadnix
nil
statix
];
};
});
formatter = forAllSystems (pkgs: pkgs.alejandra);
packages = forAllSystems (pkgs: rec {
getchvim = import ./neovim.nix self pkgs;
default = getchvim;
});
};
}
|