Add onlyoffice-bin
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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/";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user