mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
21 lines
409 B
Nix
21 lines
409 B
Nix
{
|
|
lib,
|
|
runCommand,
|
|
makeBinaryWrapper,
|
|
python3,
|
|
xdg-utils,
|
|
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} \
|
|
--prefix PATH : ${lib.makeBinPath [ xdg-utils ]}
|
|
''
|