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

36 lines
804 B
Nix

{
inputs = {
nixpkgs-2305.url = "github:NixOS/nixpkgs/nixos-23.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.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-rfc-style;
packages.${system} = {
inherit default neovim;
};
};
}