nix/pkgs/godot4-mono.nix

70 lines
1 KiB
Nix
Raw Permalink Normal View History

2024-09-19 19:47:29 +02:00
{
stdenv,
fetchzip,
autoPatchelfHook,
dotnet-sdk,
vulkan-loader,
libGL,
libX11,
libXcursor,
libXinerama,
libXext,
libXrandr,
libXrender,
libXi,
libXfixes,
libxkbcommon,
alsa-lib,
libpulseaudio,
dbus,
udev,
...
}:
stdenv.mkDerivation {
pname = "godot4-mono";
version = "4.3";
src = fetchzip {
# ...
url = "https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_mono_linux_x86_64.zip";
hash = "sha256-L32cwE/E1aEAz6t3SlO0k/QQuKRt/8lJntfdCYVdGCE=";
};
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
dotnet-sdk
];
runtimeDependencies = [
dotnet-sdk
vulkan-loader
libGL
libX11
libXcursor
libXinerama
libXext
libXrandr
libXrender
libXi
libXfixes
libxkbcommon
alsa-lib
libpulseaudio
dbus
dbus.lib
udev
];
installPhase = ''
runHook preInstall
install -m755 -D Godot_v4.3-stable_mono_linux.x86_64 $out/bin/godot4-mono
cp -fr * $out/bin/
runHook postInstall
'';
}