diff options
author | aszlig <aszlig@nix.build> | 2018-07-31 01:48:13 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-07-31 01:48:13 +0200 |
commit | e5afeaad30a27e44a18c9acf78d35bc59ff98046 (patch) | |
tree | 16c9df61873944ad61514b04553a4611bf29587c /pkgs/games/build-support/default.nix | |
parent | e9bb11e89fb728fe2127f5ac24a15df7b3c393ad (diff) |
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 <aszlig@nix.build> Cc: @layus
Diffstat (limited to 'pkgs/games/build-support/default.nix')
-rw-r--r-- | pkgs/games/build-support/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |