From 217818dbb80b54ca9eac240c169e8c015a145dc7 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 13 Sep 2017 06:06:52 +0200 Subject: pkgs/build-unity: Switch to using buildGame Now we no longer need to invoke patchelf by ourselves and all of the dependencies are patched automatically. I've added gtk2-x11, gdk_pixbuf and glib to buildUnity as well, because after inspecting other Unity games they seem to require the same libraries as well. Signed-off-by: aszlig --- pkgs/games/itch/invisigun-heroes.nix | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'pkgs/games/itch') diff --git a/pkgs/games/itch/invisigun-heroes.nix b/pkgs/games/itch/invisigun-heroes.nix index 4ab28f92..adbb2de3 100644 --- a/pkgs/games/itch/invisigun-heroes.nix +++ b/pkgs/games/itch/invisigun-heroes.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, buildUnity, fetchItch, unzip, gtk2-x11, gdk_pixbuf, glib }: +{ buildUnity, fetchItch, unzip }: buildUnity rec { name = "invisigun-heroes"; @@ -16,11 +16,4 @@ buildUnity rec { unpackCmd = '' ${unzip}/bin/unzip -qq -d invisigun-heroes "$src" || : ''; - - buildPhase = let - rpath = lib.makeLibraryPath [ stdenv.cc.cc gtk2-x11 gdk_pixbuf glib ]; - in '' - patchelf --set-rpath ${lib.escapeShellArg rpath} \ - "Invisigun Heroes_Data/Plugins/x86_64/ScreenSelector.so" - ''; } -- cgit 1.4.1