godot: 3.2.2 -> 3.3.2 (#123126)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by

Robert Whitaker
Sandro
and committed by
GitHub
8a8500c2 9640232d

+34 -23
+10 -7
pkgs/development/tools/godot/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, scons, pkg-config, libX11, libXcursor 2 - , libXinerama, libXrandr, libXrender, libpulseaudio ? null 3 - , libXi ? null, libXext, libXfixes, freetype, openssl 4 - , alsaLib, libGLU, zlib, yasm ? null }: 1 + { stdenv, lib, fetchFromGitHub, scons, pkg-config, udev, libX11 2 + , libXcursor , libXinerama, libXrandr, libXrender, libpulseaudio 3 + , libXi, libXext, libXfixes, freetype, openssl 4 + , alsaLib, libGLU, zlib, yasm 5 + , withUdev ? true 6 + }: 5 7 6 8 let 7 9 options = { 8 10 touch = libXi != null; 9 11 pulseaudio = false; 12 + udev = withUdev; 10 13 }; 11 14 in stdenv.mkDerivation rec { 12 15 pname = "godot"; 13 - version = "3.2.3"; 16 + version = "3.3.2"; 14 17 15 18 src = fetchFromGitHub { 16 19 owner = "godotengine"; 17 20 repo = "godot"; 18 21 rev = "${version}-stable"; 19 - sha256 = "19vrp5lhyvxbm6wjxzn28sn3i0s8j08ca7nani8l1nrhvlc8wi0v"; 22 + sha256 = "0rfm6sbbwzvsn76a8aqagd7cqdzmk8qxphgl89k7y982l9a5sz50"; 20 23 }; 21 24 22 25 nativeBuildInputs = [ pkg-config ]; 23 26 buildInputs = [ 24 - scons libX11 libXcursor libXinerama libXrandr libXrender 27 + scons udev libX11 libXcursor libXinerama libXrandr libXrender 25 28 libXi libXext libXfixes freetype openssl alsaLib libpulseaudio 26 29 libGLU zlib yasm 27 30 ];
+9 -8
pkgs/development/tools/godot/dont_clobber_environment.patch
··· 1 1 diff --git a/SConstruct b/SConstruct 2 - index b3d033dc90..04b8dcc832 100644 2 + index d138c7b250..c925bf908e 100644 3 3 --- a/SConstruct 4 4 +++ b/SConstruct 5 - @@ -62,10 +62,9 @@ elif platform_arg == "javascript": 6 - custom_tools = ["cc", "c++", "ar", "link", "textfile", "zip"] 7 - 5 + @@ -65,10 +65,10 @@ elif platform_arg == "javascript": 6 + # want to have to pull in manually. 7 + # Then we prepend PATH to make it take precedence, while preserving SCons' own entries. 8 8 env_base = Environment(tools=custom_tools) 9 - -if "TERM" in os.environ: 9 + -env_base.PrependENVPath("PATH", os.getenv("PATH")) 10 + -env_base.PrependENVPath("PKG_CONFIG_PATH", os.getenv("PKG_CONFIG_PATH")) 11 + -if "TERM" in os.environ: # Used for colored output. 10 12 - env_base["ENV"]["TERM"] = os.environ["TERM"] 11 - -env_base.AppendENVPath("PATH", os.getenv("PATH")) 12 - -env_base.AppendENVPath("PKG_CONFIG_PATH", os.getenv("PKG_CONFIG_PATH")) 13 13 +for k in ("TERM", "PATH", "PKG_CONFIG_PATH"): 14 14 + if (k in os.environ): 15 15 + env_base["ENV"][k] = os.environ[k] 16 + + 17 + 16 18 env_base.disabled_modules = [] 17 19 env_base.use_ptrcall = False 18 - env_base.module_version_string = ""
+15 -8
pkgs/development/tools/godot/pkg_config_additions.patch
··· 1 1 diff --git a/platform/x11/detect.py b/platform/x11/detect.py 2 - index 5674e78350..7051d8e73c 100644 2 + index 91652aad55..d12389f9f2 100644 3 3 --- a/platform/x11/detect.py 4 4 +++ b/platform/x11/detect.py 5 - @@ -201,6 +201,11 @@ def configure(env): 5 + @@ -218,6 +218,11 @@ def configure(env): 6 6 env.ParseConfig("pkg-config xrender --cflags --libs") 7 7 env.ParseConfig("pkg-config xi --cflags --libs") 8 - 8 + 9 9 + env.ParseConfig("pkg-config xext --cflags --libs") 10 10 + env.ParseConfig("pkg-config xfixes --cflags --libs") 11 11 + env.ParseConfig("pkg-config glu --cflags --libs") ··· 13 13 + 14 14 if env["touch"]: 15 15 env.Append(CPPDEFINES=["TOUCH_ENABLED"]) 16 - 17 - @@ -299,7 +304,7 @@ def configure(env): 16 + 17 + @@ -323,6 +328,7 @@ def configure(env): 18 18 print("Enabling ALSA") 19 + env["alsa"] = True 19 20 env.Append(CPPDEFINES=["ALSA_ENABLED", "ALSAMIDI_ENABLED"]) 20 - # Don't parse --cflags, we don't need to add /usr/include/alsa to include path 21 - - env.ParseConfig("pkg-config alsa --libs") 22 21 + env.ParseConfig("pkg-config alsa --cflags --libs") 23 22 else: 24 23 print("ALSA libraries not found, disabling driver") 25 - 24 + 25 + @@ -340,6 +346,7 @@ def configure(env): 26 + if os.system("pkg-config --exists libudev") == 0: # 0 means found 27 + print("Enabling udev support") 28 + env.Append(CPPDEFINES=["UDEV_ENABLED"]) 29 + + env.ParseConfig("pkg-config libudev --cflags --libs") 30 + else: 31 + print("libudev development libraries not found, disabling udev support") 32 + else: