5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
|
|
, cmake
|
|
|
|
, glm
|
|
, libGL
|
|
, openxr-loader
|
|
, python3
|
|
, vulkan-headers
|
|
, vulkan-loader
|
|
, xorg
|
|
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "opencomposite";
|
|
version = "0-unstable-2024-05-08";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "znixian";
|
|
repo = "OpenOVR";
|
|
rev = "5ddd6024efafa82c7a432c9dd8a67e3d5c3f9b38";
|
|
hash = "sha256-m6Xhi6xlDWiVqtYyxpQP2vp5JsB2EKsoXkmd0IYtPQ8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
glm
|
|
libGL
|
|
openxr-loader
|
|
python3
|
|
vulkan-headers
|
|
vulkan-loader
|
|
xorg.libX11
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DUSE_SYSTEM_OPENXR=ON"
|
|
"-DUSE_SYSTEM_GLM=ON"
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/lib/opencomposite
|
|
cp -r bin/ $out/lib/opencomposite
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
hardcodeZeroVersion = true;
|
|
branch = "openxr";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Reimplementation of OpenVR, translating calls to OpenXR";
|
|
homepage = "https://gitlab.com/znixian/OpenOVR";
|
|
license = with licenses; [ gpl3Only ];
|
|
maintainers = with maintainers; [ Scrumplex ];
|
|
};
|
|
}
|