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

33 lines
739 B
Nix
Raw Normal View History

2024-01-23 21:33:40 +00:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-2305.url = "github:NixOS/nixpkgs/nixos-23.05";
};
2024-01-23 21:33:40 +00:00
2024-05-15 18:53:51 +00:00
outputs =
{ nixpkgs, self, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
lib = import ./lib { inherit inputs self; };
2024-01-23 21:33:40 +00:00
inherit (lib) mkNeovim mkVimPlugin;
inherit (pkgs) mkShell;
default = mkVimPlugin { inherit system; };
neovim = mkNeovim { inherit system; };
2024-05-15 18:53:51 +00:00
in
{
2024-03-30 21:48:39 +00:00
inherit lib;
2024-05-15 18:53:51 +00:00
devShells.${system}.default = mkShell { buildInputs = with pkgs; [ just ]; };
2024-05-15 18:53:51 +00:00
formatter.${system} = pkgs.nixfmt-rfc-style;
2024-05-15 18:53:51 +00:00
packages.${system} = {
inherit default neovim;
};
};
2024-01-23 21:33:40 +00:00
}