From a8e406920bb11a2c53558d1398b3a66efd267e60 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 31 Jul 2018 01:54:47 +0200 Subject: 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 --- pkgs/games/gog/stardew-valley.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'pkgs/games/gog/stardew-valley.nix') diff --git a/pkgs/games/gog/stardew-valley.nix b/pkgs/games/gog/stardew-valley.nix index 6408c342..1756da3e 100644 --- a/pkgs/games/gog/stardew-valley.nix +++ b/pkgs/games/gog/stardew-valley.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, buildGame, fetchGog, unzip, makeWrapper +{ lib, stdenv, buildGame, fetchGog, makeWrapper , mono50, SDL2, libGL, openal , beta ? false @@ -20,9 +20,6 @@ buildGame rec { sha256 = "199xf008cxm6ywb4d8c3dz0h7iiv9d0ka5k93gq0jqj3ga3fjn3i"; }); - unpackCmd = lib.optionalString (!beta) - "${unzip}/bin/unzip -qq \"$curSrc\" 'data/noarch/game/*' || :"; - nativeBuildInputs = [ makeWrapper ]; buildPhase = let -- cgit 1.4.1