-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
nixos/loolwsd: init - LibreOffice/Collabora Online #77383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you for working on this, it would be very useful to have this in nixpkgs. |
@GrahamcOfBorg build libreoffice-online |
3ed9955
to
abacc29
Compare
@GrahamcOfBorg build libreoffice-online |
4f19807
to
567a545
Compare
pkgs/applications/office/libreoffice/libreoffice-srcs-additions.json
Outdated
Show resolved
Hide resolved
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/120 |
@GrahamcOfBorg build libreoffice-online collabora-office collabora-online |
]; | ||
|
||
passthru = { | ||
libreoffice = libreoffice-core; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably have to add libreoffice-core
to propagatedBuildInputs
? I don't see it in nix-store -qR /nix/store/xyz-libreofficeonline
and ldd loolwsd
doesn't show it either.
@aanderse I know you are pretty busy, but would you be able to glance at this, please? |
@mmahut the big problem for me to review this is that the application in this PR is so massive. To move forward with this PR I would suggest we break it down into fairly topic specific areas to review and find subject experts on each of those topics. I would also suggest we find someone with more than basic LibreOffice/Collabora Online experience to review this as well. If a test could be written that would also be fantastic - even if that test can't be executed by the bot, it would give people the ability to setup a basic config, in a container perhaps, and run the test locally, poke around the internals, ensure everything is working as it should be. I think this module would be of high value to the NixOS ecosystem, but without proper review and validation the best I could suggest is that maybe this make its way to NUR and gestate there... so shall break this PR down into conceptual components and find some subject experts to review individual parts? |
Added a simplified test without nextcloud. Sadly |
I narrowed down my error further. The lool user cannot connect to the nix daemon to use
which outputs:
|
Maybe the chroot closure can be prepared before, so the I was tracking down the SIGABRT issue and the last relevant strace message is the |
Add LibreOffice WebSocket Daemon.
collabora-online: init
Some of them are very large and they are not used because we pass --without-fonts to configure.
I figured out my issue, its because I had I don't think this is something to worry about since |
Sounds good. Btw - you have this based on older commit or using this rebased version? If it's on the older one would you upload it somewhere or just paste the nixpkgs commit it is based on so I can possibly bisect between that and the commit this is currently based on? |
I believe I'm using an older commit: This is the module I'm using: https://gitlab.com/coffeetablebrothers/myrdd/-/blob/master/modules/loolwsd.nix |
@@ -1,4 +1,4 @@ | |||
{ stdenv, fetchurl, lib, pam, python3, libxslt, perl, ArchiveZip, box2d, gettext | |||
{ stdenv, fetchurl, fetchFromGitHub, lib, pam, python3, libxslt, perl, ArchiveZip, box2d, gettext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ stdenv, fetchurl, fetchFromGitHub, lib, pam, python3, libxslt, perl, ArchiveZip, box2d, gettext | |
{ stdenv, fetchurl, fetchFromGitHub, fetchpatch, lib, pam, python3, libxslt, perl, ArchiveZip, box2d, gettext |
needed for collabora's override.nix
I marked this as stale due to inactivity. → More info |
What's the status of this ? |
How can I help to get this PR merged? It is super cool! |
AFAIK nobody is working on this. To get it merged you'd need to take over the branch, update to latest nixpkgs & loolwsd, and address the outstanding issues ... |
@RaitoBezarius You think need to talk with @Minion3665 |
Thanks the the ping pol, @RaitoBezarius I started looking at this in the summer but haven't worked on it for a while due to other responsibilities I'd be happy to work with you on it now though if you're interested |
I might not have full bandwidth to drive the efforts by myself, but I am very interested into following the work and helping as much as I can. It would be really nice to have this in NixOS. |
Closing because of lack of activity from the author. Please re-open if you start working on this again. |
This PR adds LibreOffice Online service which can be integrated into Nextcloud for collaborative document editing.
It also adds Collabora Online CODE service which is a LibreOffice Online variant that is intended to be more stable and has available commercial support. Originally it was not my intention to package both but it's what I ended up with during the quest for reliable service, even got permission from Collabora to package it. Question for reviewers: should NixOS ship both packages or just the upstream one (LibreOffice Online)? The downside to adding Collabora Online is that it adds third LibreOffice variant to eat Hydra compute resources.
There are three parts:
libreoffice-online
package that provides websocket daemon interfacing with LibreOffice API, and javascript frontend that can talk to the daemoncollabora-office
package, a third variant of LibreOffice, andcollabora-online
which is thelibreoffice-online
package built from different git branch and against thecollabora-office
packageRendered part of NixOS manual describing setup with NextCloud
Motivation for this change
Self-hosted collaborative document editing on NixOS.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)TODO
LO_PATH
cannot be hardlinked because it points to /nix/store (cross-device, different owner), also it's set at compile time/var/lib/lool/systemplate
DICPATH
to point to hunspell dictionaries