about summary refs log tree commit diff
path: root/pkgs/games/build-support/setup-hooks/default.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-07-31 16:47:44 +0200
committeraszlig <aszlig@nix.build>2018-07-31 16:47:44 +0200
commit0b0b5d75016bcdf7c6f7c540ef80a15e7542d2b5 (patch)
tree1d9fdc80f3d3127bcbf5bcaffc39609561bb1410 /pkgs/games/build-support/setup-hooks/default.nix
parenta8e406920bb11a2c53558d1398b3a66efd267e60 (diff)
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 <aszlig@nix.build>
Cc: @layus
Diffstat (limited to 'pkgs/games/build-support/setup-hooks/default.nix')
-rw-r--r--pkgs/games/build-support/setup-hooks/default.nix4
1 files changed, 4 insertions, 0 deletions
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;