mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
20 lines
337 B
Nix
20 lines
337 B
Nix
|
{
|
||
|
lib,
|
||
|
runCommand,
|
||
|
makeBinaryWrapper,
|
||
|
python3,
|
||
|
docs,
|
||
|
}:
|
||
|
runCommand "serve-docs"
|
||
|
{
|
||
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
||
|
meta.mainProgram = "server";
|
||
|
}
|
||
|
''
|
||
|
mkdir -p $out/bin
|
||
|
makeWrapper ${lib.getExe python3} \
|
||
|
$out/bin/server \
|
||
|
--add-flags ${./server.py} \
|
||
|
--chdir ${docs}
|
||
|
''
|