opengamepadui: use godot 4.3 explicitly

This commit is contained in:
David McFarland
2025-03-08 11:20:35 -04:00
parent a30f85f22c
commit c05bd204f3
+7 -8
View File
@@ -5,8 +5,7 @@
dbus,
fetchFromGitHub,
gamescope,
godot_4,
godot_4-export-templates,
godot_4_3,
hwdata,
lib,
libGL,
@@ -46,8 +45,8 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
autoPatchelfHook
cargo
godot_4
godot_4-export-templates
godot_4_3
godot_4_3.export-templates-bin
pkg-config
rustPlatform.cargoSetupHook
];
@@ -76,13 +75,13 @@ stdenv.mkDerivation (finalAttrs: {
env =
let
versionAndRelease = lib.splitString "-" godot_4.version;
versionAndRelease = lib.splitString "-" godot_4_3.version;
in
{
GODOT = lib.getExe godot_4;
GODOT = lib.getExe godot_4_3;
GODOT_VERSION = lib.elemAt versionAndRelease 0;
GODOT_RELEASE = lib.elemAt versionAndRelease 1;
EXPORT_TEMPLATE = "${godot_4-export-templates}";
EXPORT_TEMPLATE = "${godot_4_3.export-templates-bin}";
BUILD_TYPE = "${finalAttrs.buildType}";
};
@@ -94,7 +93,7 @@ stdenv.mkDerivation (finalAttrs: {
# Godot looks for export templates in HOME
export HOME=$(mktemp -d)
mkdir -p $HOME/.local/share/godot/export_templates
ln -s "${godot_4-export-templates}" "$HOME/.local/share/godot/export_templates/$GODOT_VERSION.$GODOT_RELEASE"
ln -s "${godot_4_3.export-templates-bin}" "$HOME/.local/share/godot/export_templates/$GODOT_VERSION.$GODOT_RELEASE"
'';
postInstall = ''