Skip to content

Commit c21b0d3

Browse files
committed
stardust-xr-server: Add tests
1 parent dcd2b6f commit c21b0d3

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

pkgs/by-name/st/stardust-xr-server/package.nix

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
lib,
33
fetchFromGitHub,
4+
stardust-xr-server,
45
nix-update-script,
56
rustPlatform,
67
cmake,
@@ -12,6 +13,8 @@
1213
openxr-loader,
1314
pkg-config,
1415
xorg,
16+
testers,
17+
nixosTests,
1518
}:
1619

1720
rustPlatform.buildRustPackage rec {
@@ -55,7 +58,16 @@ rustPlatform.buildRustPackage rec {
5558
install -D ${cpm-cmake}/share/cpm/CPM.cmake $(echo $cargoDepsCopy/stereokit-sys-*/StereoKit)/build/cpm/CPM_0.32.2.cmake
5659
'';
5760

58-
passthru.updateScript = nix-update-script { };
61+
passthru = {
62+
updateScript = nix-update-script { };
63+
tests = {
64+
inherit (nixosTests) stardust-xr-server;
65+
versionTest = testers.testVersion {
66+
inherit version;
67+
package = stardust-xr-server;
68+
};
69+
};
70+
};
5971

6072
meta = {
6173
description = "Wayland compositor and display server for 3D applications";

0 commit comments

Comments
 (0)