From 2608b3990cc7280eccff2be50d9fab9a05d4d8bb Mon Sep 17 00:00:00 2001 From: eymeric Date: Sat, 20 Jul 2024 16:28:41 +0200 Subject: [PATCH] onlyoffice-documentserver: enable aarch64-linux support --- .../onlyoffice-documentserver/default.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/servers/onlyoffice-documentserver/default.nix b/pkgs/servers/onlyoffice-documentserver/default.nix index 8cc68f6e502d..e494344d72cd 100644 --- a/pkgs/servers/onlyoffice-documentserver/default.nix +++ b/pkgs/servers/onlyoffice-documentserver/default.nix @@ -17,10 +17,16 @@ let pname = "onlyoffice-documentserver"; version = "8.1.3"; - src = fetchurl { - url = "https://github.com/ONLYOFFICE/DocumentServer/releases/download/v${lib.concatStringsSep "." (lib.take 3 (lib.splitVersion version))}/onlyoffice-documentserver_amd64.deb"; - sha256 = "sha256-jCwcXb97Z9/ZofKLYneJxKAnaZE/Hwvm34GLQu/BoUM="; - }; + src = fetchurl ({ + "aarch64-linux" = { + url = "https://github.com/ONLYOFFICE/DocumentServer/releases/download/v${version}/onlyoffice-documentserver_arm64.deb"; + sha256 = "sha256-+7hHz1UcnlJNhBAVaYQwK0m2tkgsfbjqY3oa8XU0yxo="; + }; + "x86_64-linux" = { + url = "https://github.com/ONLYOFFICE/DocumentServer/releases/download/v${version}/onlyoffice-documentserver_amd64.deb"; + sha256 = "sha256-jCwcXb97Z9/ZofKLYneJxKAnaZE/Hwvm34GLQu/BoUM="; + }; + }.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}")); preferLocalBuild = true; @@ -144,7 +150,7 @@ let ''; homepage = "https://github.com/ONLYOFFICE/DocumentServer"; license = licenses.agpl3Plus; - platforms = [ "x86_64-linux" ]; + platforms = [ "x86_64-linux" "aarch64-linux" ]; sourceProvenance = [ sourceTypes.binaryNativeCode ]; maintainers = with maintainers; [ SuperSandro2000 ]; };