Last active
December 30, 2022 23:06
-
-
Save Gonzih/b2dac91ac14fb2b6934f0bcf45fbb34d to your computer and use it in GitHub Desktop.
Unreal Engine 4 nix-shell config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import <nixpkgs> {}; | |
in pkgs.clangStdenv.mkDerivation rec { | |
name = "unreal-engine-build"; | |
# UE4_LINUX_USE_LIBCXX = "0"; | |
UE_USE_SYSTEM_MONO = "1"; | |
# SDL_VIDEO_X11_VISUALID = ""; | |
common = with pkgs; [ | |
libdrm | |
libGL libGL_driver mesa_noglu | |
xorg.libX11 | |
xorg.libXau | |
xorg.libxcb | |
xorg.libXcursor | |
xorg.libXext | |
xorg.libXfixes | |
xorg.libXi | |
xorg.libXinerama | |
xorg.libXrandr | |
xorg.libXrender | |
xorg.libXScrnSaver | |
xorg.libXxf86vm | |
# xorg.xextproto | |
# xorg.xineramaproto | |
]; | |
LD_LIBRARY_PATH = pkgs.clangStdenv.lib.makeLibraryPath(with pkgs; [ | |
clangStdenv.cc.cc.lib | |
] ++ common); | |
buildInputs = (with pkgs; [ | |
libtool | |
xdg-user-dirs | |
bashInteractive | |
pkgconfig | |
clangStdenv | |
clang mono which | |
SDL2.dev | |
] ++ common); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./Setup.sh | |
./GenerateProjectFiles.sh -ForceUseSystemCompiler | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment