LibreOffice icon

LibreOffice 24.8.4

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": "24.8.4",
  "src": {
    "url": "https://download.documentfoundation.org/libreoffice/stable/24.8.4/mac/aarch64/LibreOffice_24.8.4_MacOS_aarch64.dmg",
    "sha256": "cef2ac5ae8dda894cdd86c97bcd6da72ede81e78b1afa7d99d8676ac135ae114"
  },
  "installPhase": [
    "mkdir -p \"$out/Applications\" && cp -r \"LibreOffice.app\" \"$out/Applications/LibreOffice.app\"",
    "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/"
  }
}