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

27 lines
738 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-03-18 20:34:42 +00:00
outputs = inputs@{ self, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
flake = { lib = import ./lib { inherit inputs; }; };
2024-03-18 20:34:42 +00:00
systems = [ "x86_64-linux" ];
2024-01-23 21:33:40 +00:00
2024-03-18 20:34:42 +00:00
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 pkgs.nixfmt ]; };
2024-03-18 20:34:42 +00:00
packages = { inherit default neovim; };
2024-03-18 20:34:42 +00:00
formatter = pkgs.nixfmt;
};
};
2024-01-23 21:33:40 +00:00
}