about summary refs log tree commit diff
path: root/pkgs/games/gog/overload.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-07-31 01:54:47 +0200
committeraszlig <aszlig@nix.build>2018-07-31 01:54:47 +0200
commita8e406920bb11a2c53558d1398b3a66efd267e60 (patch)
treec792cbf21acf270efb39a6a914d922de022de914 /pkgs/games/gog/overload.nix
parente5afeaad30a27e44a18c9acf78d35bc59ff98046 (diff)
games/gog: Switch everything to gogUnpackHook
For Albion, Settlers 2 and World of Xeen we need to explicitly add
gogUnpackHook, because for those the derivation containing the game data
is not created via our buildGame wrapper.

Everything else is just done by removing unpackCmd and unzip from the
package arguments. One exception is Thimbleweed Park, which relied on
custom path for unzip in order to get the desktop icon, but with our now
hook, we get that icon now in xdg-icon.png with a flat directory
structure.

I've tested this by building all the games from GOG that we have
packaged here. However, I didn't test whether every single one actually
runs.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/gog/overload.nix')
-rw-r--r--pkgs/games/gog/overload.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/games/gog/overload.nix b/pkgs/games/gog/overload.nix
index 94c20bcb..00410356 100644
--- a/pkgs/games/gog/overload.nix
+++ b/pkgs/games/gog/overload.nix
@@ -1,4 +1,4 @@
-{ buildUnity, fetchGog, unzip }:
+{ buildUnity, fetchGog }:
 
 buildUnity {
   name = "overload";
@@ -11,6 +11,4 @@ buildUnity {
     downloadName = "en3installer0";
     sha256 = "1r42ll6k2xif405rp85gn3sbhacrhf1kkpqx2ahp8j5f9alscdxm";
   };
-
-  unpackCmd = "${unzip}/bin/unzip -qq \"$curSrc\" 'data/noarch/game/*' || :";
 }