From 45ed8329ddaac73d933f811c85713d98fb9cb7c7 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Sun, 5 Jul 2026 00:50:19 +0000 Subject: [PATCH] stardust-xr-flatland: 0-unstable-2024-04-13 -> 0.51.1 --- .../fix-reify-test-signature.patch | 26 +++++++++++++++++++ .../st/stardust-xr-flatland/package.nix | 10 ++++--- 2 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 pkgs/by-name/st/stardust-xr-flatland/fix-reify-test-signature.patch diff --git a/pkgs/by-name/st/stardust-xr-flatland/fix-reify-test-signature.patch b/pkgs/by-name/st/stardust-xr-flatland/fix-reify-test-signature.patch new file mode 100644 index 000000000000..2df66fdae53e --- /dev/null +++ b/pkgs/by-name/st/stardust-xr-flatland/fix-reify-test-signature.patch @@ -0,0 +1,26 @@ +diff --git a/src/resize_handles.rs b/src/resize_handles.rs +index 0fcb071..69d2f2f 100644 +--- a/src/resize_handles.rs ++++ b/src/resize_handles.rs +@@ -451,7 +451,7 @@ impl CustomElement for ResizeHandles { + #[tokio::test] + async fn test_resize_handles() { + use serde::{Deserialize, Serialize}; +- use stardust_xr_asteroids::{client, ClientState, Migrate, Reify, Transformable}; ++ use stardust_xr_asteroids::{client, ClientState, Migrate, Reify, Tasker, Transformable}; + + // Simple test state + #[derive(Debug, Serialize, Deserialize)] +@@ -474,7 +474,11 @@ async fn test_resize_handles() { + const APP_ID: &'static str = "org.stardustxr.flatland.ResizeHandles"; + } + impl Reify for State { +- fn reify(&self) -> impl stardust_xr_asteroids::Element { ++ fn reify( ++ &self, ++ _context: &Context, ++ _tasks: impl Tasker, ++ ) -> impl stardust_xr_asteroids::Element { + stardust_xr_asteroids::elements::Spatial::default() + .rot(Quat::from_rotation_y(self.time / 10.0)) + .build() diff --git a/pkgs/by-name/st/stardust-xr-flatland/package.nix b/pkgs/by-name/st/stardust-xr-flatland/package.nix index 7cf260b25ce4..66b2bbe14b33 100644 --- a/pkgs/by-name/st/stardust-xr-flatland/package.nix +++ b/pkgs/by-name/st/stardust-xr-flatland/package.nix @@ -7,18 +7,20 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "stardust-xr-flatland"; - version = "0-unstable-2024-04-13"; + version = "0.51.1"; src = fetchFromGitHub { owner = "stardustxr"; repo = "flatland"; - rev = "b3b0f29c4ea1b82c96cf9de507837bf15a5e4c0e"; - hash = "sha256-m7c6XpmpTM1URuqMG2KqtaWbL2Vt8vJFJtmvq123BmY="; + tag = finalAttrs.version; + hash = "sha256-Gp2r6PJiyNb+augDwS/vGPJfwb5U6pVYgSyhS9QlggY="; }; + patches = [ ./fix-reify-test-signature.patch ]; + env.STARDUST_RES_PREFIXES = "${finalAttrs.src}/res"; - cargoHash = "sha256-oM4nQUEc3iq1x4uRp8Kw5WtE/L5b6VlLOfElMT9Tk98="; + cargoHash = "sha256-2LT/Szwzs83Poe7BojmUFh9yyUEhSgHmBR5QaO/BE4g="; __structuredAttrs = true; strictDeps = true;