lol

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 }: 5 6 let 7 options = { 8 touch = libXi != null; 9 pulseaudio = false; 10 }; 11 in stdenv.mkDerivation rec { 12 pname = "godot"; 13 - version = "3.2.3"; 14 15 src = fetchFromGitHub { 16 owner = "godotengine"; 17 repo = "godot"; 18 rev = "${version}-stable"; 19 - sha256 = "19vrp5lhyvxbm6wjxzn28sn3i0s8j08ca7nani8l1nrhvlc8wi0v"; 20 }; 21 22 nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ 24 - scons libX11 libXcursor libXinerama libXrandr libXrender 25 libXi libXext libXfixes freetype openssl alsaLib libpulseaudio 26 libGLU zlib yasm 27 ];
··· 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 + }: 7 8 let 9 options = { 10 touch = libXi != null; 11 pulseaudio = false; 12 + udev = withUdev; 13 }; 14 in stdenv.mkDerivation rec { 15 pname = "godot"; 16 + version = "3.3.2"; 17 18 src = fetchFromGitHub { 19 owner = "godotengine"; 20 repo = "godot"; 21 rev = "${version}-stable"; 22 + sha256 = "0rfm6sbbwzvsn76a8aqagd7cqdzmk8qxphgl89k7y982l9a5sz50"; 23 }; 24 25 nativeBuildInputs = [ pkg-config ]; 26 buildInputs = [ 27 + scons udev libX11 libXcursor libXinerama libXrandr libXrender 28 libXi libXext libXfixes freetype openssl alsaLib libpulseaudio 29 libGLU zlib yasm 30 ];
+9 -8
pkgs/development/tools/godot/dont_clobber_environment.patch
··· 1 diff --git a/SConstruct b/SConstruct 2 - index b3d033dc90..04b8dcc832 100644 3 --- a/SConstruct 4 +++ b/SConstruct 5 - @@ -62,10 +62,9 @@ elif platform_arg == "javascript": 6 - custom_tools = ["cc", "c++", "ar", "link", "textfile", "zip"] 7 - 8 env_base = Environment(tools=custom_tools) 9 - -if "TERM" in os.environ: 10 - 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 +for k in ("TERM", "PATH", "PKG_CONFIG_PATH"): 14 + if (k in os.environ): 15 + env_base["ENV"][k] = os.environ[k] 16 env_base.disabled_modules = [] 17 env_base.use_ptrcall = False 18 - env_base.module_version_string = ""
··· 1 diff --git a/SConstruct b/SConstruct 2 + index d138c7b250..c925bf908e 100644 3 --- a/SConstruct 4 +++ b/SConstruct 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 env_base = Environment(tools=custom_tools) 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. 12 - env_base["ENV"]["TERM"] = os.environ["TERM"] 13 +for k in ("TERM", "PATH", "PKG_CONFIG_PATH"): 14 + if (k in os.environ): 15 + env_base["ENV"][k] = os.environ[k] 16 + + 17 + 18 env_base.disabled_modules = [] 19 env_base.use_ptrcall = False
+15 -8
pkgs/development/tools/godot/pkg_config_additions.patch
··· 1 diff --git a/platform/x11/detect.py b/platform/x11/detect.py 2 - index 5674e78350..7051d8e73c 100644 3 --- a/platform/x11/detect.py 4 +++ b/platform/x11/detect.py 5 - @@ -201,6 +201,11 @@ def configure(env): 6 env.ParseConfig("pkg-config xrender --cflags --libs") 7 env.ParseConfig("pkg-config xi --cflags --libs") 8 - 9 + env.ParseConfig("pkg-config xext --cflags --libs") 10 + env.ParseConfig("pkg-config xfixes --cflags --libs") 11 + env.ParseConfig("pkg-config glu --cflags --libs") ··· 13 + 14 if env["touch"]: 15 env.Append(CPPDEFINES=["TOUCH_ENABLED"]) 16 - 17 - @@ -299,7 +304,7 @@ def configure(env): 18 print("Enabling ALSA") 19 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 + env.ParseConfig("pkg-config alsa --cflags --libs") 23 else: 24 print("ALSA libraries not found, disabling driver") 25 -
··· 1 diff --git a/platform/x11/detect.py b/platform/x11/detect.py 2 + index 91652aad55..d12389f9f2 100644 3 --- a/platform/x11/detect.py 4 +++ b/platform/x11/detect.py 5 + @@ -218,6 +218,11 @@ def configure(env): 6 env.ParseConfig("pkg-config xrender --cflags --libs") 7 env.ParseConfig("pkg-config xi --cflags --libs") 8 + 9 + env.ParseConfig("pkg-config xext --cflags --libs") 10 + env.ParseConfig("pkg-config xfixes --cflags --libs") 11 + env.ParseConfig("pkg-config glu --cflags --libs") ··· 13 + 14 if env["touch"]: 15 env.Append(CPPDEFINES=["TOUCH_ENABLED"]) 16 + 17 + @@ -323,6 +328,7 @@ def configure(env): 18 print("Enabling ALSA") 19 + env["alsa"] = True 20 env.Append(CPPDEFINES=["ALSA_ENABLED", "ALSAMIDI_ENABLED"]) 21 + env.ParseConfig("pkg-config alsa --cflags --libs") 22 else: 23 print("ALSA libraries not found, disabling driver") 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: