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

42 lines
973 B
Nix
Raw Permalink Normal View History

2024-01-23 21:33:40 +00:00
{
inputs = {
2024-07-06 14:23:28 +00:00
flake-parts.url = "github:hercules-ci/flake-parts";
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";
};
2024-01-23 21:33:40 +00:00
2024-05-15 18:53:51 +00:00
outputs =
2024-07-06 14:23:28 +00:00
inputs@{ self, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
flake = {
lib = import ./lib { inherit inputs self; };
2024-05-15 18:53:51 +00:00
};
2024-07-06 14:23:28 +00:00
systems = [ "x86_64-linux" ];
perSystem =
{
config,
pkgs,
system,
...
}:
{
apps = {
nvim = {
program = "${config.packages.neovim}/bin/nvim";
type = "app";
};
};
packages = {
default = self.lib.mkVimPlugin { inherit system; };
neovim = self.lib.mkNeovim { inherit system; };
};
formatter = pkgs.nixfmt-rfc-style;
};
};
2024-01-23 21:33:40 +00:00
}