diff --git a/home/gui/default.nix b/home/gui/default.nix index 9237f1d..1718b05 100644 --- a/home/gui/default.nix +++ b/home/gui/default.nix @@ -19,18 +19,17 @@ handbrake jdk11 libtheora + onlyoffice-bin synology-drive-client vlc x265 zoom-us ] ++ ( if pkgs.system == "x86_64-darwin" then [ - libreoffice-bin ] else [ jellyfin-media-player nextcloud-client - onlyoffice-bin ] ); diff --git a/overlays/default.nix b/overlays/default.nix index 2073a1c..22b44ab 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -67,5 +67,6 @@ in rec { bitwarden = macOver ./mac/bitwarden.nix "bitwarden"; gnucash = macOver ./mac/gnucash.nix "gnucash"; handbrake = macOver ./mac/handbrake.nix "handbrake"; + onlyoffice-bin = macOver ./mac/onlyoffice-bin.nix "onlyoffice-bin"; vlc = macOver ./mac/vlc.nix "vlc"; } diff --git a/overlays/mac/onlyoffice-bin.nix b/overlays/mac/onlyoffice-bin.nix new file mode 100644 index 0000000..c9918bf --- /dev/null +++ b/overlays/mac/onlyoffice-bin.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl, + undmg, +}: + +stdenv.mkDerivation rec { + version = "7.2.1"; + pname = "onlyoffice"; + + buildInputs = [ + undmg + ]; + sourceRoot = "."; + phases = [ + "unpackPhase" + "installPhase" + ]; + installPhase = '' + mkdir -p "$out/Applications" + cp -r *.app "$out/Applications" + ''; + + src = fetchurl { + name = "${pname}-${version}.dmg"; + url = "https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${version}/ONLYOFFICE-x86_64.dmg"; + sha256 = "sha256-dsuTaZ+IqsDE/j78ht0Md5NoqQ090cJ4u5LClu3tSp0="; + }; + + meta = { + description = "OnlyOffice provides a suite of Office-like document editors for the desktop and web."; + homepage = "https://www.onlyoffice.com/"; + }; +}