LibreOffice icon

LibreOffice 25.2.1

Free cross-platform office suite, fresh version

Installation

System wide:

{
  environment.systemPackages = with nix-casks.packages.${system}; [
    libreoffice # LibreOffice
  ];
}

Home Manager:

{
  home.packages = with nix-casks.packages.${system}; [
    libreoffice # LibreOffice
  ];
}

Package Definition

{
  "pname": "libreoffice",
  "version": "25.2.1",
  "src": {
    "url": "https://download.documentfoundation.org/libreoffice/stable/25.2.1/mac/aarch64/LibreOffice_25.2.1_MacOS_aarch64.dmg",
    "sha256": "d0f8573dfc5d1a858061a9bc7889313cb6837db8a8f1b568d067ca156c03745e"
  },
  "installPhase": [
    "mkdir -p \"$out/Applications/LibreOffice.app\" && cp -r \"LibreOffice.app\" \"$out/Applications\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/LibreOffice.app/Contents/MacOS/regview\" \"$out/bin/regview\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/LibreOffice.app/Contents/MacOS/senddoc\" \"$out/bin/senddoc\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/LibreOffice.app/Contents/MacOS/uno\" \"$out/bin/uno\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/LibreOffice.app/Contents/MacOS/unoinfo\" \"$out/bin/unoinfo\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/LibreOffice.app/Contents/MacOS/uri-encode\" \"$out/bin/uri-encode\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/LibreOffice.app/Contents/MacOS/xpdfimport\" \"$out/bin/xpdfimport\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/soffice.wrapper.sh\" \"$out/bin/soffice\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/LibreOffice.app/Contents/MacOS/unopkg\" \"$out/bin/unopkg\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/LibreOffice.app/Contents/MacOS/gengal\" \"$out/bin/gengal\""
  ],
  "meta": {
    "description": "Free cross-platform office suite, fresh version",
    "homepage": "https://www.libreoffice.org/"
  }
}