sftpgo: Include openapi, static and templates folders

Those are needed for serving the web client

(cherry picked from commit 12c32b5583)
This commit is contained in:
Yaya
2023-04-19 13:35:10 +00:00
parent b88f160f57
commit 7f4bf64484

View File

@@ -38,6 +38,10 @@ buildGoModule rec {
--bash <($out/bin/sftpgo gen completion bash) \
--zsh <($out/bin/sftpgo gen completion zsh) \
--fish <($out/bin/sftpgo gen completion fish)
shareDirectory="$out/share/sftpgo"
mkdir -p "$shareDirectory"
cp -r ./{openapi,static,templates} "$shareDirectory"
'';
meta = with lib; {