Skip to content
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

Package request: collabora online #333457

Closed
evrim opened this issue Aug 9, 2024 · 0 comments · Fixed by #330708
Closed

Package request: collabora online #333457

evrim opened this issue Aug 9, 2024 · 0 comments · Fixed by #330708
Labels
0.kind: packaging request Request for a new package to be added

Comments

@evrim
Copy link
Contributor

evrim commented Aug 9, 2024

Collabora Online

Hi there,

As of today, OnlyOffice is packaged in nixpkgs though it has a bug that throws SIG_ILL in x2t transformer. An alternative to onlyoffice, there is Collabora Online. It is an online version of libreoffice that can be integrated into several different portals suchs as nextcloud, moodle etc.

I've decided to give it a go to package it into nixpkgs with the following shell:

{ pkgs ? import <nixpkgs> {} }:                                                                                                                                                                                                              
                                                                                                                                                                                                                                             
pkgs.stdenv.mkDerivation {                                                                                                                                                                                                                   
  name = "collabora-online";                                                                                                                                                                                                                 
  nativeBuildInputs = with pkgs; [                                                                                                                                                                                                           
    gcc                                                                                                                                                                                                                                      
    gnumake                                                                                                                                                                                                                                  
    bc                                                                                                                                                                                                                                       
    pkg-config                                                                                                                                                                                                                               
    binutils                                                                                                                                                                                                                                 
    gdb                                                                                                                                                                                                                                      
    automake                                                                                                                                                                                                                                 
    autoconf                                                                                                                                                                                                                                 
    libtool                                                                                                                                                                                                                                  
  ];                                                                                                                                                                                                                                         
  buildInputs = with pkgs; [                                                                                                                                                                                                                 
    elfutils                                                                                                                                                                                                                                 
    ncurses                                                                                                                                                                                                                                  
    openssl                                                                                                                                                                                                                                  
    zlib                                                                                                                                                                                                                                     
    (python3.withPackages(ps: with ps; [                                                                                                                                                                                                     
      lxml polib                                                                                                                                                                                                                             
    ]))                                                                                                                                                                                                                                      
    libreoffice-collabora                                                                                                                                                                                                                   
    libpng                                                                                                                                                                                                                                   
    zstd                                                                                                                                                                                                                                     
    cppunit                                                                                                                                                                                                                                  
    libcap                                                                                                                                                                                                                                   
    pam                                                                                                                                                                                                                                      
  ];                                                                                                                                                                                                                                         
}          

When I've tried to configure it looked for libreofficekit that which I am not familiar with.

checking for LibreOfficeKit/LibreOfficeKit.h... no                                                                                                                                                                                           
configure: error: header LibreOfficeKit/LibreOfficeKit.h not found, perhaps you want to use --with-lokit-path              

I've looked into the the libreoffice-collabora package and found only the followings:

                                                                                                     
[nix-shell:~/nextcloud/online]$ find /nix/store/jzf0qc3lfygxw9zyfhwkvvbd5r5wrxxp-libreoffice-24.04.5-4 |grep kit                                                                                                                             
/nix/store/jzf0qc3lfygxw9zyfhwkvvbd5r5wrxxp-libreoffice-24.04.5-4/lib/collaboraoffice/program/liblibreofficekitgtk.so                                                                                                                        
/nix/store/jzf0qc3lfygxw9zyfhwkvvbd5r5wrxxp-libreoffice-24.04.5-4/lib/collaboraoffice/share/libreofficekit                                                                                                                                   
/nix/store/jzf0qc3lfygxw9zyfhwkvvbd5r5wrxxp-libreoffice-24.04.5-4/lib/collaboraoffice/share/libreofficekit/handle_image_middle.png                                                                                                           
/nix/store/jzf0qc3lfygxw9zyfhwkvvbd5r5wrxxp-libreoffice-24.04.5-4/lib/collaboraoffice/share/libreofficekit/handle_image_end.png                                                                                                              
/nix/store/jzf0qc3lfygxw9zyfhwkvvbd5r5wrxxp-libreoffice-24.04.5-4/lib/collaboraoffice/share/libreofficekit/handle_image_start.png        

My question is, is it possible to get dev contents of libreoffice in nixpkgs via some output (usually it is 'dev')? I must admit I do not possess much experience with libreoffice and friends. I assume libreofficekit is a dev extension that can hook up to some functionality in libreoffice, please correct me if I am wrong.

I think while the onlyoffice gets a proper fix, it is positive to initiate a conversation for an alternative that is collabora in this particular situtation.

best,
evrim.

Metadata

@evrim evrim added the 0.kind: packaging request Request for a new package to be added label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: packaging request Request for a new package to be added
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant