Skip to content

Commit

Permalink
softmaker-office-nx: init at 1222 (NixOS#366490)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Dec 21, 2024
2 parents 8fd2957 + 603f344 commit 8480747
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkgs/applications/office/softmaker/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ in
stdenv.mkDerivation {
inherit pname src;

version = "${edition}.${version}";
version = if edition != "" then "${edition}.${version}" else version;

nativeBuildInputs = [
autoPatchelfHook
Expand Down
32 changes: 32 additions & 0 deletions pkgs/applications/office/softmaker/softmaker-office-nx.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
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 = "1222";
edition = "";
hash = "sha256-8ya9RYpd9G5SITYOpvhxjQE8ieV8TuAApkjNwCf9nHs=";
},

...
}@args:

callPackage ./generic.nix (
args
// rec {
inherit (officeVersion) version edition;

pname = "softmaker-office-nx";
suiteName = "SoftMaker Office NX";

src = fetchurl {
inherit (officeVersion) hash;
url = "https://www.softmaker.net/down/softmaker-office-nx-${version}-amd64.tgz";
};

archive = "officenx.tar.lzma";
}
)
17 changes: 15 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13937,7 +13937,12 @@ with pkgs;
jre = jre8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
};

freeoffice = callPackage ../applications/office/softmaker/freeoffice.nix { };
inherit
({
freeoffice = callPackage ../applications/office/softmaker/freeoffice.nix { };
})
freeoffice
;

inherit (xorg) xlsfonts;

Expand Down Expand Up @@ -14950,7 +14955,15 @@ with pkgs;

smtube = libsForQt5.callPackage ../applications/video/smtube { };

softmaker-office = callPackage ../applications/office/softmaker/softmaker_office.nix { };
inherit
({
softmaker-office = callPackage ../applications/office/softmaker/softmaker-office.nix { };
softmaker-office-nx = callPackage ../applications/office/softmaker/softmaker-office-nx.nix { };
})
softmaker-office
softmaker-office-nx
;


synapse-bt = callPackage ../applications/networking/p2p/synapse-bt {
inherit (darwin.apple_sdk.frameworks) CoreServices Security;
Expand Down

0 comments on commit 8480747

Please sign in to comment.