Oliver Davies
69b2d3b710
Using the latest nightly version of `nixd` due to a dependency on nix 2.16.2 which is now unsecure.
41 lines
873 B
Nix
41 lines
873 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
nixpkgs-2305.url = "github:NixOS/nixpkgs/nixos-23.05";
|
|
|
|
nixd-nightly.inputs.nixpkgs.follows = "nixpkgs";
|
|
nixd-nightly.url = "github:nix-community/nixd";
|
|
};
|
|
|
|
outputs = inputs @ {
|
|
self,
|
|
flake-parts,
|
|
...
|
|
}:
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
flake = {
|
|
lib = import ./lib {inherit inputs;};
|
|
};
|
|
|
|
systems = ["x86_64-linux"];
|
|
|
|
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];
|
|
};
|
|
|
|
packages = {inherit default neovim;};
|
|
|
|
formatter = pkgs.alejandra;
|
|
};
|
|
};
|
|
}
|