From 0b0b5d75016bcdf7c6f7c540ef80a15e7542d2b5 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 31 Jul 2018 16:47:44 +0200 Subject: games: Move FMOD fixing from Bastion to setup hook Thanks to @layus for pointing out that there is at least one other game (Epistory) which has the same FMOD issue as Bastion has. So I decided to move this into a setup hook that automatically discovers whether it's the affected FMOD version and NOPs out the calls to system(). In summary: If another game is affected, all that's needed now is to add fixFmodHook to nativeBuildInputs. Signed-off-by: aszlig Cc: @layus --- pkgs/games/build-support/setup-hooks/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/games/build-support/setup-hooks/default.nix') diff --git a/pkgs/games/build-support/setup-hooks/default.nix b/pkgs/games/build-support/setup-hooks/default.nix index 9f35dad7..a125f644 100644 --- a/pkgs/games/build-support/setup-hooks/default.nix +++ b/pkgs/games/build-support/setup-hooks/default.nix @@ -1,6 +1,10 @@ { makeSetupHook, libarchive, innoextract }: { + fixFmodHook = makeSetupHook { + deps = []; + } ./fix-fmod.sh; + gogUnpackHook = makeSetupHook { deps = [ libarchive innoextract ]; } ./gog-unpack.sh; -- cgit 1.4.1