diff --git a/default.nix b/default.nix index 10ac0bb..756ecd9 100644 --- a/default.nix +++ b/default.nix @@ -45,6 +45,50 @@ self: super: { ''; }; + "3.5.3" = super.stdenv.mkDerivation rec { + pname = "godot-mono-bin"; + version = "3.5.3"; + + src = super.fetchzip { + url = + "https://downloads.tuxfamily.org/godotengine/${version}/mono/Godot_v${version}-stable_mono_x11_64.zip"; + hash = "sha256-q+zB5R7ATH1z0/mLLzibLEeKR/Ppw5JmFO/LMZtD9VM="; + }; + + nativeBuildInputs = + [ super.autoPatchelfHook super.makeWrapper super.unzip ]; + + buildInputs = [ + super.udev + super.alsaLib + super.xorg.libXcursor + super.xorg.libXinerama + super.xorg.libXrandr + super.xorg.libXrender + super.xorg.libX11 + super.xorg.libXi + super.libpulseaudio + super.libGL + super.zlib + ]; + + libraries = super.lib.makeLibraryPath buildInputs; + + installPhase = '' + mkdir -p $out/bin $out/opt/godot-mono + + install -m 0755 Godot_v${version}-stable_mono_x11.64 $out/opt/godot-mono/Godot_v${version}-stable_mono_x11.64 + cp -r GodotSharp $out/opt/godot-mono + + ln -s $out/opt/godot-mono/Godot_v${version}-stable_mono_x11.64 $out/bin/${pname}-${version} + ''; + + postFixup = '' + wrapProgram $out/bin/${pname}-${version} \ + --set LD_LIBRARY_PATH ${libraries} + ''; + }; + "4.2.1" = super.stdenv.mkDerivation rec { pname = "godot-mono-bin"; version = "4.2.1";