From e5afeaad30a27e44a18c9acf78d35bc59ff98046 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 31 Jul 2018 01:48:13 +0200 Subject: games: Add a new gogUnpackHook This should make all the extra unpackCmd attributes for the GOG games superfluous and make the expression way less convoluted, especially the games based on Unity3D. Right now however, the gogUnpackHook is added to buildGame, which is used for all games, not only for the GOG ones. While it doesn't really hurt or affect non-GOG games, it's still part of the build closure so we might want to apply this to GOG only at some day. For that, we need to restructure our whole packaging layout, because we want to have a way to override buildGame only for a certain namespace but without introducing too much churn or duplicating things. Signed-off-by: aszlig Cc: @layus --- pkgs/games/build-support/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkgs/games/build-support/default.nix') diff --git a/pkgs/games/build-support/default.nix b/pkgs/games/build-support/default.nix index 1832f987..0e7574ec 100644 --- a/pkgs/games/build-support/default.nix +++ b/pkgs/games/build-support/default.nix @@ -1,4 +1,4 @@ -{ config, callPackage, ... }: +{ config, callPackage, callPackages, ... }: { buildGame = callPackage ./build-game.nix { @@ -6,4 +6,6 @@ }; buildUnity = callPackage ./build-unity.nix {}; monogamePatcher = callPackage ./monogame-patcher {}; + + inherit (callPackages ./setup-hooks {}) gogUnpackHook; } -- cgit 1.4.1