35 lines
695 B
Nix
35 lines
695 B
Nix
{
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
outputs = inputs @ {
|
|
self,
|
|
flake-parts,
|
|
...
|
|
}:
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
flake = {
|
|
lib = import ./lib {inherit inputs;};
|
|
};
|
|
|
|
systems = ["x86_64-linux"];
|
|
|
|
perSystem = {
|
|
pkgs,
|
|
self',
|
|
system,
|
|
...
|
|
}: let
|
|
default = self.lib.mkVimPlugin {inherit system;};
|
|
neovim = self.lib.mkNeovim {inherit system;};
|
|
in {
|
|
devShells.default = pkgs.mkShell {
|
|
nativeBuildInputs = [pkgs.just];
|
|
};
|
|
|
|
packages = {inherit default neovim;};
|
|
|
|
formatter = pkgs.alejandra;
|
|
};
|
|
};
|
|
}
|