mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
28 lines
680 B
Nix
28 lines
680 B
Nix
{ callPackage
|
|
, fetchurl
|
|
|
|
# This is a bit unusual, but makes version and hash easily
|
|
# overridable. This is useful when the upstream archive was replaced
|
|
# and nixpkgs is not in sync yet.
|
|
, officeVersion ? {
|
|
version = "1054";
|
|
edition = "2021";
|
|
hash = "sha256-dqmJUm0Qi1/GzGrI4OCHo1LwQ5KxMwZZw5EsYTMF6XU=";
|
|
}
|
|
|
|
, ... } @ args:
|
|
|
|
callPackage ./generic.nix (args // rec {
|
|
inherit (officeVersion) version edition;
|
|
|
|
pname = "freeoffice";
|
|
suiteName = "FreeOffice";
|
|
|
|
src = fetchurl {
|
|
inherit (officeVersion) hash;
|
|
url = "https://www.softmaker.net/down/softmaker-freeoffice-${edition}-${version}-amd64.tgz";
|
|
};
|
|
|
|
archive = "freeoffice${edition}.tar.lzma";
|
|
})
|