Skip to content

Commit

Permalink
ue4: use system Mono
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed May 5, 2021
1 parent f9fa03f commit 8275cb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/games/ue4/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ stdenv.mkDerivation rec {
# Piggyback on the engine user-local directory
export MONO_REGISTRY_PATH="\$HOME/.config/Epic/UnrealEngine/4.26/MonoRegistry"
# Use the system Mono
export PATH="${mono}/bin:\$PATH"
export UE_USE_SYSTEM_MONO=1
exec ./UE4Editor "\$@"
EOF
chmod +x $out/bin/UE4Editor
Expand Down Expand Up @@ -140,7 +144,6 @@ stdenv.mkDerivation rec {
# Set ELF interpreters (but not rpaths)
pushd $out/share/UnrealEngine
for i in \
Engine/Binaries/ThirdParty/Mono/Linux/bin/mono \
Engine/Source/ThirdParty/CEF3/cef_binary_3.2623.1395.g3034273_linux64/Release/chrome-sandbox
do
patchelf --set-interpreter "${stdenv.cc.bintools.dynamicLinker}" "$i"
Expand Down

0 comments on commit 8275cb1

Please sign in to comment.