mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
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.
27 lines
439 B
Nix
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;
|
|
};
|
|
};
|
|
}
|