2 # Packaging Dependencies
3 lib, stdenv, requireFile, autoPatchelfHook, unzip, copyDesktopItems, makeDesktopItem,
5 # Everspace Dependencies
6 cairo, gdk-pixbuf, pango, gtk2-x11, libGL, openal,
8 # Unreal Engine 4 Dependencies
13 # - Video playback (upon starting a new game) does not work (screen is black)
14 stdenv.mkDerivation rec {
16 version = "1.3.5.3655";
19 name = "everspace_1_3_5_3655_32896.sh";
20 url = "https://www.gog.com/";
21 sha256 = "0jlvxq14k1pxmbr08y8kar0ijlqxcnkfqlvw883j96v9zr34ynj3";
39 runtimeDependencies = [
59 # The shell script contains a zip file. Unzipping it works but will result
60 # in some error output and an error exit code.
67 ## Remove Bundled Libs ##
71 # TODO: This is probably what breaks video playback. It would be cleaner
72 # to remove the bundled libs and replace them with system libs but there
73 # are so many. Copy-pasting the list from the vlc package is a good start
74 # but still leaves us with many unresolved dependencies.
75 rm -rf ./data/noarch/game/RSG/Plugins/VlcMedia
78 rm -rf ./data/noarch/game/Engine/Binaries/ThirdParty/OpenAL
88 cp -r "./data/noarch" "$out/opt/everspace"
91 ln -s "$out/opt/everspace/game/RSG/Binaries/Linux/RSG-Linux-Shipping" "$out/bin/everspace"
93 mkdir -p "$out/share/pixmaps"
94 ln -s "$out/opt/everspace/support/icon.png" "$out/share/pixmaps/everspace-gog.png"
101 type = "Application";
102 name = "everspace-gog";
103 desktopName = "EVERSPACEā¢";
104 comment = meta.description;
106 icon = "everspace-gog";
107 categories = [ "Game" ];
112 description = "Action-focused single-player space shooter with roguelike elements";
113 homepage = "https://classic.everspace-game.com/";
114 license = licenses.unfree;
115 maintainers = with maintainers; [ jtrees ];
116 platforms = [ "x86_64-linux" ];