Merge pull request #305118 from superherointj/godot-4.2.2-stable

godot_4: 4.2.1-stable -> 4.2.2-stable
This commit is contained in:
superherointj 2024-04-23 06:23:50 -03:00 committed by GitHub
commit 123edd97fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 23 additions and 6 deletions

View File

@ -0,0 +1,13 @@
# Export templates is necessary for setting up Godot engine, it's used when exporting projects.
# Godot applications/games packages needs to reference export templates.
# Export templates version should be kept in sync with Godot version.
# https://docs.godotengine.org/en/stable/tutorials/export/exporting_projects.html#export-templates
{ fetchzip, godot_4, ... }:
fetchzip {
pname = "export_templates";
extension = "zip";
url = "https://github.com/godotengine/godot/releases/download/${godot_4.version}/Godot_v${godot_4.version}_export_templates.tpz";
hash = "sha256-eomGLH9lbZhl7VtHTWjJ5mxVt0Yg8LfnAnpqoCksPgs=";
}

View File

@ -22,6 +22,7 @@
, speechd , speechd
, fontconfig , fontconfig
, udev , udev
, withDebug ? false
, withPlatform ? "linuxbsd" , withPlatform ? "linuxbsd"
, withTarget ? "editor" , withTarget ? "editor"
, withPrecision ? "single" , withPrecision ? "single"
@ -43,14 +44,14 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "godot4"; pname = "godot4";
version = "4.2.1-stable"; version = "4.2.2-stable";
commitHash = "b09f793f564a6c95dc76acc654b390e68441bd01"; commitHash = "15073afe3856abd2aa1622492fe50026c7d63dc1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "godotengine"; owner = "godotengine";
repo = "godot"; repo = "godot";
rev = commitHash; rev = commitHash;
hash = "sha256-Q6Og1H4H2ygOryMPyjm6kzUB6Su6T9mJIp0alNAxvjQ="; hash = "sha256-anJgPEeHIW2qIALMfPduBVgbYYyz1PWCmPsZZxS9oHI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -115,6 +116,7 @@ stdenv.mkDerivation rec {
platform = withPlatform; platform = withPlatform;
target = withTarget; target = withTarget;
precision = withPrecision; # Floating-point precision level precision = withPrecision; # Floating-point precision level
debug_symbols = withDebug;
# Options from 'platform/linuxbsd/detect.py' # Options from 'platform/linuxbsd/detect.py'
pulseaudio = withPulseaudio; # Use PulseAudio pulseaudio = withPulseaudio; # Use PulseAudio
@ -125,6 +127,8 @@ stdenv.mkDerivation rec {
touch = withTouch; # Enable touch events touch = withTouch; # Enable touch events
}; };
dontStrip = withDebug;
outputs = [ "out" "man" ]; outputs = [ "out" "man" ];
installPhase = '' installPhase = ''
@ -142,12 +146,12 @@ stdenv.mkDerivation rec {
cp icon.png "$out/share/icons/godot.png" cp icon.png "$out/share/icons/godot.png"
''; '';
meta = with lib; { meta = {
homepage = "https://godotengine.org"; homepage = "https://godotengine.org";
description = "Free and Open Source 2D and 3D game engine"; description = "Free and Open Source 2D and 3D game engine";
license = licenses.mit; license = lib.licenses.mit;
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ]; platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
maintainers = with maintainers; [ shiryel ]; maintainers = with lib.maintainers; [ shiryel superherointj ];
mainProgram = "godot4"; mainProgram = "godot4";
}; };
} }