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