Skip to content

Commit

Permalink
onlyoffice-documentserver: enable aarch64-linux support (#328679)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Sep 18, 2024
2 parents f0a876c + 2608b39 commit 770c666
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions pkgs/servers/onlyoffice-documentserver/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 ];
};
Expand Down

0 comments on commit 770c666

Please sign in to comment.