unity3d: fix editor not launching due to missing libraries (#91452)

This commit is contained in:
Mikołaj Gałkowski 2020-06-25 02:17:56 +02:00 committed by GitHub
parent 5f0cf22c59
commit 22d4aed5bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@
, cairo, dbus, expat, zlib, libpng12, nodejs, gnutar, gcc, gcc_32bit
, libX11, libXcursor, libXdamage, libXfixes, libXrender, libXi
, libXcomposite, libXext, libXrandr, libXtst, libSM, libICE, libxcb, chromium
, libpqxx
, libpqxx, libselinux, pciutils, libpulseaudio
}:
let
@ -15,6 +15,8 @@ let
libX11 libXcursor libXdamage libXfixes libXrender libXi
libXcomposite libXext libXrandr libXtst libSM libICE libxcb
libpqxx gtk3
libselinux pciutils libpulseaudio
];
libPath32 = lib.makeLibraryPath [ gcc_32bit.cc ];
binPath = lib.makeBinPath [ nodejs gnutar ];
@ -56,6 +58,7 @@ in stdenv.mkDerivation {
mkdir -p $out/bin
makeWrapper $unitydir/Unity $out/bin/unity-editor \
--prefix LD_LIBRARY_PATH : "${libPath64}" \
--prefix LD_PRELOAD : "$unitydir/libunity-nosuid.so" \
--prefix PATH : "${binPath}"
'';