forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
softmaker-office-nx: init at 1222 (NixOS#366490)
- Loading branch information
Showing
4 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
pkgs/applications/office/softmaker/softmaker-office-nx.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} | ||
) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters