···26, libdrm
27, makeWrapper
28, mesa
029, nspr
30, nss
31, pulseaudio
···54 # TODO: Find out which of these fonts we'd be allowed to distribute along
55 # with this package, or how to make this easier for users otherwise.
5657- # Not using the `noto-fonts-cjk` package from nixpkgs, because it was
58- # reported that its `.ttc` file is not picked up by OnlyOffice, see:
59- # https://github.com/NixOS/nixpkgs/pull/116343#discussion_r593979816
60- noto-fonts-cjk = fetchurl {
61- url =
62- let
63- version = "v20201206-cjk";
64- in
65- "https://github.com/googlefonts/noto-cjk/raw/${version}/NotoSansCJKsc-Regular.otf";
66- sha256 = "sha256-aJXSVNJ+p6wMAislXUn4JQilLhimNSedbc9nAuPVxo4=";
67- };
68-69 runtimeLibs = lib.makeLibraryPath [
70 curl
71 glibc
···7677 derivation = stdenv.mkDerivation rec {
78 pname = "onlyoffice-desktopeditors";
79- version = "7.4.1";
80 minor = null;
81 src = fetchurl {
82 url = "https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${version}/onlyoffice-desktopeditors_amd64.deb";
83- sha256 = "sha256-vaBF3GJyLBldWdEruOeVpRvwGNwaRl7IKPguDLRoe8M=";
84 };
8586 nativeBuildInputs = [
···134 dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner
135 '';
136137- preConfigure = ''
138- cp --no-preserve=mode,ownership ${noto-fonts-cjk} opt/onlyoffice/desktopeditors/fonts/
139- '';
140-141 installPhase = ''
142 runHook preInstall
143···179180# In order to download plugins, OnlyOffice uses /usr/bin/curl so we have to wrap it.
181# Curl still needs to be in runtimeLibs because the library is used directly in other parts of the code.
0182buildFHSEnv {
183 name = derivation.name;
184185 targetPkgs = pkgs': [
186 curl
187 derivation
0188 ];
189190 runScript = "/bin/onlyoffice-desktopeditors";
···26, libdrm
27, makeWrapper
28, mesa
29+, noto-fonts-cjk-sans
30, nspr
31, nss
32, pulseaudio
···55 # TODO: Find out which of these fonts we'd be allowed to distribute along
56 # with this package, or how to make this easier for users otherwise.
5700000000000058 runtimeLibs = lib.makeLibraryPath [
59 curl
60 glibc
···6566 derivation = stdenv.mkDerivation rec {
67 pname = "onlyoffice-desktopeditors";
68+ version = "7.5.1";
69 minor = null;
70 src = fetchurl {
71 url = "https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${version}/onlyoffice-desktopeditors_amd64.deb";
72+ sha256 = "sha256-Hf5CNbUUMuHZHDY3fgD4qpF4UASevscK8DTZlauyHhY=";
73 };
7475 nativeBuildInputs = [
···123 dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner
124 '';
1250000126 installPhase = ''
127 runHook preInstall
128···164165# In order to download plugins, OnlyOffice uses /usr/bin/curl so we have to wrap it.
166# Curl still needs to be in runtimeLibs because the library is used directly in other parts of the code.
167+# Fonts are also discovered by looking in /usr/share/fonts, so adding fonts to targetPkgs will include them
168buildFHSEnv {
169 name = derivation.name;
170171 targetPkgs = pkgs': [
172 curl
173 derivation
174+ noto-fonts-cjk-sans
175 ];
176177 runScript = "/bin/onlyoffice-desktopeditors";