nix-community.nixvim/flake/packages.nix
Matt Sturgeon f3342bdbd4
docs: refactor serve-docs; add nix run .#docs
Refactor `serve-docs` using `makeWrapper`, make it available as a
`serve-docs` package and as the `docs` "app".

This means `nix build .#docs` will build the docs while `nix run .#docs`
will run the server.
2025-05-22 13:48:58 +01:00

27 lines
439 B
Nix

{
self,
inputs,
helpers,
...
}:
{
perSystem =
{
config,
inputs',
system,
...
}:
{
# Run the docs server when using `nix run .#docs`
apps.docs.program = config.packages.serve-docs;
packages = import ../docs {
nixvim = self;
inherit helpers;
inherit system;
inherit (inputs) nixpkgs;
inherit (inputs') nuschtosSearch;
};
};
}