···2626, libdrm
2727, makeWrapper
2828, mesa
2929+, noto-fonts-cjk-sans
2930, nspr
3031, nss
3132, pulseaudio
···5455 # TODO: Find out which of these fonts we'd be allowed to distribute along
5556 # with this package, or how to make this easier for users otherwise.
56575757- # Not using the `noto-fonts-cjk` package from nixpkgs, because it was
5858- # reported that its `.ttc` file is not picked up by OnlyOffice, see:
5959- # https://github.com/NixOS/nixpkgs/pull/116343#discussion_r593979816
6060- noto-fonts-cjk = fetchurl {
6161- url =
6262- let
6363- version = "v20201206-cjk";
6464- in
6565- "https://github.com/googlefonts/noto-cjk/raw/${version}/NotoSansCJKsc-Regular.otf";
6666- sha256 = "sha256-aJXSVNJ+p6wMAislXUn4JQilLhimNSedbc9nAuPVxo4=";
6767- };
6868-6958 runtimeLibs = lib.makeLibraryPath [
7059 curl
7160 glibc
···76657766 derivation = stdenv.mkDerivation rec {
7867 pname = "onlyoffice-desktopeditors";
7979- version = "7.4.1";
6868+ version = "7.5.1";
8069 minor = null;
8170 src = fetchurl {
8271 url = "https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${version}/onlyoffice-desktopeditors_amd64.deb";
8383- sha256 = "sha256-vaBF3GJyLBldWdEruOeVpRvwGNwaRl7IKPguDLRoe8M=";
7272+ sha256 = "sha256-Hf5CNbUUMuHZHDY3fgD4qpF4UASevscK8DTZlauyHhY=";
8473 };
85748675 nativeBuildInputs = [
···134123 dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner
135124 '';
136125137137- preConfigure = ''
138138- cp --no-preserve=mode,ownership ${noto-fonts-cjk} opt/onlyoffice/desktopeditors/fonts/
139139- '';
140140-141126 installPhase = ''
142127 runHook preInstall
143128···179164180165# In order to download plugins, OnlyOffice uses /usr/bin/curl so we have to wrap it.
181166# Curl still needs to be in runtimeLibs because the library is used directly in other parts of the code.
167167+# Fonts are also discovered by looking in /usr/share/fonts, so adding fonts to targetPkgs will include them
182168buildFHSEnv {
183169 name = derivation.name;
184170185171 targetPkgs = pkgs': [
186172 curl
187173 derivation
174174+ noto-fonts-cjk-sans
188175 ];
189176190177 runScript = "/bin/onlyoffice-desktopeditors";