30 lines
715 B
Nix
30 lines
715 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
nixpkgs-2305.url = "github:NixOS/nixpkgs/nixos-23.05";
|
|
};
|
|
|
|
outputs = { nixpkgs, self, ... }@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
lib = import ./lib { inherit inputs self; };
|
|
|
|
inherit (lib) mkNeovim mkVimPlugin;
|
|
inherit (pkgs) mkShell;
|
|
|
|
default = mkVimPlugin { inherit system; };
|
|
neovim = mkNeovim { inherit system; };
|
|
in {
|
|
inherit lib;
|
|
|
|
devShells.${system}.default =
|
|
mkShell { buildInputs = with pkgs; [ just ]; };
|
|
|
|
formatter.${system} = pkgs.nixfmt;
|
|
|
|
packages.${system} = { inherit default neovim; };
|
|
};
|
|
}
|