Skip to content

Commit

Permalink
Init godot-bin.mono."3.5.3" (#1)
Browse files Browse the repository at this point in the history
* chore: Init godot-bin.mono.'3.5.3'

* fix: fix version

* fix: Change sha256
  • Loading branch information
haruki7049 authored Apr 1, 2024
1 parent bd375c3 commit 69a1d92
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 69a1d92

Please sign in to comment.