From 384f1966962642a6fb88fdc4ca981f69e8aafebb Mon Sep 17 00:00:00 2001 From: David McFarland Date: Mon, 11 Nov 2024 09:50:51 -0400 Subject: [PATCH] godot_4-mono: fix build on aarch64 --- pkgs/by-name/go/godot_4/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/go/godot_4/package.nix b/pkgs/by-name/go/godot_4/package.nix index 64267cd63218..d48b0b0a6d09 100644 --- a/pkgs/by-name/go/godot_4/package.nix +++ b/pkgs/by-name/go/godot_4/package.nix @@ -56,6 +56,8 @@ let suffix = if withMono then "-mono" else ""; + arch = stdenv.hostPlatform.linuxArch; + attrs = rec { pname = "godot4${suffix}"; version = "4.3-stable"; @@ -149,9 +151,9 @@ let postBuild = lib.optionalString withMono '' echo "Generating Glue" if [[ ${withPrecision} == *double* ]]; then - bin/godot.${withPlatform}.${withTarget}.${withPrecision}.x86_64.mono --headless --generate-mono-glue modules/mono/glue + bin/godot.${withPlatform}.${withTarget}.${withPrecision}.${arch}.mono --headless --generate-mono-glue modules/mono/glue else - bin/godot.${withPlatform}.${withTarget}.x86_64.mono --headless --generate-mono-glue modules/mono/glue + bin/godot.${withPlatform}.${withTarget}.${arch}.mono --headless --generate-mono-glue modules/mono/glue fi echo "Building C#/.NET Assemblies" python modules/mono/build_scripts/build_assemblies.py --godot-output-dir bin --precision=${withPrecision}