1{
2 callPackage,
3 fetchurl,
4
5 # This is a bit unusual, but makes version and hash easily
6 # overridable. This is useful when people have an older version of
7 # Softmaker Office or when the upstream archive was replaced and
8 # nixpkgs is not in sync yet.
9 officeVersion ? {
10 version = "1224";
11 edition = "2024";
12 hash = "sha256-ix9R9Xlugvu5qmKAqC2DsZFhyJ+VVsD7MSpBv+4lmTY=";
13 },
14
15 ...
16}@args:
17
18callPackage ./generic.nix (
19 args
20 // rec {
21 inherit (officeVersion) version edition;
22
23 pname = "softmaker-office";
24 suiteName = "SoftMaker Office";
25
26 src = fetchurl {
27 inherit (officeVersion) hash;
28 url = "https://www.softmaker.net/down/softmaker-office-${edition}-${version}-amd64.tgz";
29 };
30
31 archive = "office${edition}.tar.lzma";
32 }
33)