This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
opdavies.nvim/flake.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; };
};
}