SoftMaker Office: Difference between revisions
imported>Yannickloth m Yannickloth moved page SoftMakerOffice to SoftMaker Office: Title is not correct without space |
imported>Yannickloth fix hash/sha256 for 21.05 |
||
Line 27: | Line 27: | ||
=== Install SoftMaker Office 2018 === | === Install SoftMaker Office 2018 === | ||
==== On NixOS 21.05 ==== | |||
<syntaxhighlight lang="nix"> | |||
environment = { | |||
systemPackages = with pkgs; [ | |||
(softmaker-office.override { | |||
officeVersion = { | |||
edition = "2018"; | |||
version = "982"; | |||
hash = "sha256-A45q/irWxKTLszyd7Rv56WeqkwHtWg4zY9YVxqA/KmQ="; | |||
}; | |||
}) | |||
]; | |||
}; | |||
</syntaxhighlight> | |||
==== On NixOS 20.09 ==== | |||
{{Note|The only difference is the sha256/hash attribute.}} | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
environment = { | environment = { |
Revision as of 14:53, 4 June 2021
SoftMaker Office is a proprietary office suite from SoftMaker (https://www.softmaker.com/en).
Users buy a license for a given edition (let's say "2018") and can the install all versions of this edition (usually, each edition has multiple versions). This edition is eventually replaced by a newer one, for which a new license is needed. Users remain able to install older editions for which they acquired a license, but can't use newer editions with their old license.
This guide explains how to install SoftMaker office.
Installing the latest version (of the latest edition) of SoftMaker Office
As of 2021-05-28: edition: SoftMaker Office 2021; version: 1030
Simply add softmaker-office to your system packages:
environment = {
systemPackages = with pkgs; [
softmaker-office
];
};
Installing a previous edition of SoftMaker Office
You'll need to override the package configuration.
Install SoftMaker Office 2018
On NixOS 21.05
environment = {
systemPackages = with pkgs; [
(softmaker-office.override {
officeVersion = {
edition = "2018";
version = "982";
hash = "sha256-A45q/irWxKTLszyd7Rv56WeqkwHtWg4zY9YVxqA/KmQ=";
};
})
];
};
On NixOS 20.09
environment = {
systemPackages = with pkgs; [
(softmaker-office.override {
officeVersion = {
edition = "2018";
version = "982";
sha256 = "A45q/irWxKTLszyd7Rv56WeqkwHtWg4zY9YVxqA/KmQ=";
};
})
];
};
Install other editions (2016)
1. Go to https://www.softmaker.com/en/old-versions, and download the corresponding amd64 .tgz
file (for Linux). Take note of the edition and version.
2. Generate the sha256 hash (don't forget to fix the path and filename of the .tgz) :
nix to-sri --type sha256 $(sha256sum ~/Downloads/softmaker-office-2018-982-amd64.tgz | cut -d ' ' -f1)
3. Add the specification into /etc/nixos/configuration.nix
as for installing the 2018 edition, and adapt the three variables with your values (edition
, version
and sha256
).