commit d54ab28e1d8a6597e70b829f902b8433407404b8
parent 43e0760b218ba8943bf2797abce092b306868f18
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 3 Apr 2022 23:32:22 +0200
parent 43e0760b218ba8943bf2797abce092b306868f18
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 3 Apr 2022 23:32:22 +0200
pkgs/macApps: add "LibreOffice"
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/pkgs/macApps/LibreOffice.nix b/pkgs/macApps/LibreOffice.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, undmg, ... }: + +stdenv.mkDerivation rec { + pname = "LibreOffice"; + version = "7.3.2"; + + buildInputs = [ undmg ]; + sourceRoot = "."; + phases = [ "unpackPhase" "installPhase" ]; + installPhase = '' + mkdir -p "$out/Applications" + cp -r LibreOffice.app "$out/Applications/LibreOffice.app" + ''; + + src = fetchurl { + name = "LibreOffice-${version}.dmg"; + url = "https://download.documentfoundation.org/libreoffice/stable/${version}/mac/aarch64/LibreOffice_${version}_MacOS_aarch64.dmg"; + sha256 = "0bsdwp5mpnfxg692lpbziay9kwi3fxrh2kn324kcz8hkhx6mydkn"; + }; + +# meta = with stdenv.lib; { +# description = "LibreOffice is a free and powerful office suite"; +# homepage = "https://libreoffice.org/"; +# platforms = platforms.darwin; +# }; +}