diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-09-10 08:01:59 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-09-10 08:14:09 +0200 |
commit | 7a7cffce514f8967cb610399890f252cab75eb6a (patch) | |
tree | 0b9e102f3f0a4a4266b4b4168d7b5c91f14d1757 /pkgs/games/default.nix | |
parent | 5402b030e2cc78e510414b4604d9528afbec43d2 (diff) |
games/invisigun-heroes: Factor out into buildUnity
There are a lot of Unity games out there, so it's a good idea to have a generic builder just for Unity, which we then can apply to a lot more games. Right now this is a pretty basic abstraction which I've only tested with Invisigun Heroes. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/games/default.nix')
-rw-r--r-- | pkgs/games/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/games/default.nix b/pkgs/games/default.nix index cef568cf..b775610d 100644 --- a/pkgs/games/default.nix +++ b/pkgs/games/default.nix @@ -25,12 +25,17 @@ let description = "Available collections of games."; }; }; + + config._module.args.pkgs = let + buildSupport = import ./build-support { + callPackage = lib.callPackageWith (pkgs // buildSupport); + }; + in buildSupport // pkgs; }; in (pkgs.lib.evalModules { modules = [ (if config == null then configFilePath else config) baseModule ./humblebundle ./steam ./itch - { config._module.args.pkgs = pkgs; } ]; }).config.packages |