2 The package defintion for an OpenRA engine.
3 It shares code with `mod.nix` by what is defined in `common.nix`.
4 Similar to `mod.nix` it is a generic package definition,
5 in order to make it easy to define multiple variants of the OpenRA engine.
6 For each mod provided by the engine, a wrapper script is created,
7 matching the naming convention used by `mod.nix`.
8 This package could be seen as providing a set of in-tree mods,
9 while the `mod.nix` pacakges provide a single out-of-tree mod.
21 lib.recursiveUpdate packageAttrs rec {
22 pname = "openra_2019";
23 version = "${engine.name}-${engine.version}";
27 postPatch = patchEngine "." version;
32 make version VERSION=${lib.escapeShellArg version}
43 checkTarget = "nunit test";
48 "install-linux-desktop"
49 "install-linux-appdata"
55 ${wrapLaunchGame "" "openra"}
59 makeWrapper $out/bin/openra $out/bin/openra-${mod} --add-flags Game.Mod=${mod}
65 inherit (engine) description homepage;