diff options
author | aszlig <aszlig@nix.build> | 2018-07-31 01:54:47 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-07-31 01:54:47 +0200 |
commit | a8e406920bb11a2c53558d1398b3a66efd267e60 (patch) | |
tree | c792cbf21acf270efb39a6a914d922de022de914 /pkgs/games/gog/war-for-the-overworld.nix | |
parent | e5afeaad30a27e44a18c9acf78d35bc59ff98046 (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/war-for-the-overworld.nix')
-rw-r--r-- | pkgs/games/gog/war-for-the-overworld.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/games/gog/war-for-the-overworld.nix b/pkgs/games/gog/war-for-the-overworld.nix index 8309fa12..8e46ec32 100644 --- a/pkgs/games/gog/war-for-the-overworld.nix +++ b/pkgs/games/gog/war-for-the-overworld.nix @@ -1,4 +1,4 @@ -{ buildUnity, fetchGog, unzip, mono, monogamePatcher }: +{ buildUnity, fetchGog, mono, monogamePatcher }: buildUnity { name = "war-for-the-overworld"; @@ -12,8 +12,6 @@ buildUnity { sha256 = "07yj9clf3hmy7z67ck9sqf3gnrazx5rzifg91jas77z774vwdg8k"; }; - unpackCmd = "${unzip}/bin/unzip -qq \"$curSrc\" 'data/noarch/game/*' || :"; - nativeBuildInputs = [ mono monogamePatcher ]; # The game tries to write stuff to its dataPath and it's even more |