unity3d: fix editor not launching due to missing libraries (#91452)
This commit is contained in:
parent
5f0cf22c59
commit
22d4aed5bd
1 changed files with 4 additions and 1 deletions
|
@ -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}"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue