nix-community.nixvim/ci/default.nix
Matt Sturgeon 2b2b1e6d8f ci: rename update-scriptsci
This changes how we think about this directory; it does not need to be
exclusively for scripts related to updates, but should be a place for
any scripts intended to be run by CI workflows.

This mindset should make it easier to develop and test the business
logic of workflows, without always needing to test "in production" on
the nixvim repo or a fork.
2025-06-15 21:23:58 +00:00

23 lines
845 B
Nix

{
# By default, load nixvim using flake-compat
nixvim ? import ../.,
pkgs ? nixvim.inputs.nixpkgs.legacyPackages.${builtins.currentSystem},
lib ? nixvim.inputs.nixpkgs.lib,
}:
lib.fix (self: {
# The main script
default = self.generate;
generate = lib.callPackageWith (pkgs // self) ./generate.nix { };
update = lib.callPackageWith (pkgs // self) ./update.nix { };
# A shell that has the generate script
shell = pkgs.mkShell { nativeBuildInputs = [ self.generate ]; };
# Derivations that build the generated files
efmls-configs-sources = pkgs.callPackage ./efmls-configs.nix { };
none-ls-builtins = pkgs.callPackage ./none-ls.nix { };
rust-analyzer-options = pkgs.callPackage ./rust-analyzer { };
lspconfig-servers = pkgs.callPackage ./nvim-lspconfig { };
version-info = pkgs.callPackage ./version-info { };
})