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 , libdrm 27 , makeWrapper 28 , mesa 29 , 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. 56 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 runtimeLibs = lib.makeLibraryPath [ 70 curl 71 glibc ··· 76 77 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 }; 85 86 nativeBuildInputs = [ ··· 134 dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner 135 ''; 136 137 - preConfigure = '' 138 - cp --no-preserve=mode,ownership ${noto-fonts-cjk} opt/onlyoffice/desktopeditors/fonts/ 139 - ''; 140 - 141 installPhase = '' 142 runHook preInstall 143 ··· 179 180 # 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. 182 buildFHSEnv { 183 name = derivation.name; 184 185 targetPkgs = pkgs': [ 186 curl 187 derivation 188 ]; 189 190 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. 57 58 runtimeLibs = lib.makeLibraryPath [ 59 curl 60 glibc ··· 65 66 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 }; 74 75 nativeBuildInputs = [ ··· 123 dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner 124 ''; 125 126 installPhase = '' 127 runHook preInstall 128 ··· 164 165 # 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 168 buildFHSEnv { 169 name = derivation.name; 170 171 targetPkgs = pkgs': [ 172 curl 173 derivation 174 + noto-fonts-cjk-sans 175 ]; 176 177 runScript = "/bin/onlyoffice-desktopeditors";
+2 -2
pkgs/top-level/all-packages.nix
··· 34092 okteto = callPackage ../development/tools/okteto { }; 34093 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 { }; 34096 onlyoffice-bin = onlyoffice-bin_7_2; 34097 - onlyoffice-bin_latest = onlyoffice-bin_7_4; 34098 34099 onmetal-image = callPackage ../tools/virtualization/onmetal-image { }; 34100
··· 34092 okteto = callPackage ../development/tools/okteto { }; 34093 34094 onlyoffice-bin_7_2 = callPackage ../applications/office/onlyoffice-bin/7_2.nix { }; 34095 + onlyoffice-bin_7_5 = callPackage ../applications/office/onlyoffice-bin/7_5.nix { }; 34096 onlyoffice-bin = onlyoffice-bin_7_2; 34097 + onlyoffice-bin_latest = onlyoffice-bin_7_5; 34098 34099 onmetal-image = callPackage ../tools/virtualization/onmetal-image { }; 34100