Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 32 lines 705 B view raw
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 = "1224"; 10 edition = ""; 11 hash = "sha256-Y6x5E8WeI7Pf/wczWNKnHsCbXWW4Jdzo4ToBdzgmOF8="; 12 }, 13 14 ... 15}@args: 16 17callPackage ./generic.nix ( 18 args 19 // rec { 20 inherit (officeVersion) version edition; 21 22 pname = "softmaker-office-nx"; 23 suiteName = "SoftMaker Office NX"; 24 25 src = fetchurl { 26 inherit (officeVersion) hash; 27 url = "https://www.softmaker.net/down/softmaker-office-nx-${version}-amd64.tgz"; 28 }; 29 30 archive = "officenx.tar.lzma"; 31 } 32)