From 7a7cffce514f8967cb610399890f252cab75eb6a Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 10 Sep 2017 08:01:59 +0200 Subject: 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 --- pkgs/games/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pkgs/games/default.nix') 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 -- cgit 1.4.1