stardust-xr-server: init at 0.44.1
This commit is contained in:
parent
3434d41e70
commit
adc862328f
2867
pkgs/by-name/st/stardust-xr-server/Cargo.lock
generated
Normal file
2867
pkgs/by-name/st/stardust-xr-server/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
72
pkgs/by-name/st/stardust-xr-server/package.nix
Normal file
72
pkgs/by-name/st/stardust-xr-server/package.nix
Normal file
@ -0,0 +1,72 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
rustPlatform,
|
||||
cmake,
|
||||
cpm-cmake,
|
||||
fontconfig,
|
||||
libGL,
|
||||
libxkbcommon,
|
||||
mesa,
|
||||
openxr-loader,
|
||||
pkg-config,
|
||||
xorg,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "stardust-xr-server";
|
||||
version = "0.44.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stardustxr";
|
||||
repo = "server";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-sCatpWDdy7NFWOWUARjN3fZMDVviX2iV79G0HTxfYZU=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"smithay-0.3.0" = "sha256-dxAgTGW+xxnL+vA6j2Ng02F1zt/Y5VaSxP9xg8jfMy8=";
|
||||
"stardust-xr-0.14.1" = "sha256-fmRb46s0Ec8wnoerBh4JCv1WKz2of1YW+YGwy0Gr/yQ=";
|
||||
};
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
rustPlatform.bindgenHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
fontconfig
|
||||
libGL
|
||||
libxkbcommon
|
||||
mesa
|
||||
openxr-loader
|
||||
xorg.libX11
|
||||
xorg.libXfixes
|
||||
];
|
||||
|
||||
CPM_SOURCE_CACHE = "./build";
|
||||
|
||||
postPatch = ''
|
||||
install -D ${cpm-cmake}/share/cpm/CPM.cmake $(echo $cargoDepsCopy/stereokit-sys-*/StereoKit)/build/cpm/CPM_0.32.2.cmake
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Wayland compositor and display server for 3D applications";
|
||||
homepage = "https://stardustxr.org/";
|
||||
changelog = "https://github.com/StardustXR/server/releases";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
mainProgram = "stardust-xr-server";
|
||||
maintainers = with lib.maintainers; [
|
||||
pandapip1
|
||||
technobaboo
|
||||
];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user