Merge pull request #262126 from fin444/onlyoffice-bin/7.5

onlyoffice-bin_latest: 7.4.1 -> 7.5.1, improve inclusion of noto fonts

authored by Peder Bergebakken Sundt and committed by GitHub d08965ed c71c02a5

+7 -20
+5 -18
pkgs/applications/office/onlyoffice-bin/7_4.nix pkgs/applications/office/onlyoffice-bin/7_5.nix
··· 26 26 , libdrm 27 27 , makeWrapper 28 28 , mesa 29 + , noto-fonts-cjk-sans 29 30 , nspr 30 31 , nss 31 32 , pulseaudio ··· 54 55 # TODO: Find out which of these fonts we'd be allowed to distribute along 55 56 # with this package, or how to make this easier for users otherwise. 56 57 57 - # 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 58 runtimeLibs = lib.makeLibraryPath [ 70 59 curl 71 60 glibc ··· 76 65 77 66 derivation = stdenv.mkDerivation rec { 78 67 pname = "onlyoffice-desktopeditors"; 79 - version = "7.4.1"; 68 + version = "7.5.1"; 80 69 minor = null; 81 70 src = fetchurl { 82 71 url = "https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${version}/onlyoffice-desktopeditors_amd64.deb"; 83 - sha256 = "sha256-vaBF3GJyLBldWdEruOeVpRvwGNwaRl7IKPguDLRoe8M="; 72 + sha256 = "sha256-Hf5CNbUUMuHZHDY3fgD4qpF4UASevscK8DTZlauyHhY="; 84 73 }; 85 74 86 75 nativeBuildInputs = [ ··· 134 123 dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner 135 124 ''; 136 125 137 - preConfigure = '' 138 - cp --no-preserve=mode,ownership ${noto-fonts-cjk} opt/onlyoffice/desktopeditors/fonts/ 139 - ''; 140 - 141 126 installPhase = '' 142 127 runHook preInstall 143 128 ··· 179 164 180 165 # In order to download plugins, OnlyOffice uses /usr/bin/curl so we have to wrap it. 181 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 182 168 buildFHSEnv { 183 169 name = derivation.name; 184 170 185 171 targetPkgs = pkgs': [ 186 172 curl 187 173 derivation 174 + noto-fonts-cjk-sans 188 175 ]; 189 176 190 177 runScript = "/bin/onlyoffice-desktopeditors";
+2 -2
pkgs/top-level/all-packages.nix
··· 34092 34092 okteto = callPackage ../development/tools/okteto { }; 34093 34093 34094 34094 onlyoffice-bin_7_2 = callPackage ../applications/office/onlyoffice-bin/7_2.nix { }; 34095 - onlyoffice-bin_7_4 = callPackage ../applications/office/onlyoffice-bin/7_4.nix { }; 34095 + onlyoffice-bin_7_5 = callPackage ../applications/office/onlyoffice-bin/7_5.nix { }; 34096 34096 onlyoffice-bin = onlyoffice-bin_7_2; 34097 - onlyoffice-bin_latest = onlyoffice-bin_7_4; 34097 + onlyoffice-bin_latest = onlyoffice-bin_7_5; 34098 34098 34099 34099 onmetal-image = callPackage ../tools/virtualization/onmetal-image { }; 34100 34100