Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.4 KiB
Nix

{
cmake,
fetchFromGitLab,
glm,
jsoncpp,
lib,
libGL,
nix-update-script,
openxr-loader,
python3,
stdenv,
vulkan-headers,
vulkan-loader,
xorg,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "opencomposite";
version = "1.0.1521";
src = fetchFromGitLab {
owner = "znixian";
repo = "OpenOVR";
tag = finalAttrs.version;
fetchSubmodules = true;
hash = "sha256-qi1iqlsr0P+Hw63O3ayCBIEGdNtkhl8FCPcs/m0WIzs=";
};
nativeBuildInputs = [
cmake
python3
];
buildInputs = [
glm
jsoncpp
libGL
vulkan-headers
vulkan-loader
xorg.libX11
];
cmakeFlags = [
(lib.cmakeFeature "CMAKE_CXX_FLAGS" "-Wno-error=format-security")
# See https://gitlab.com/znixian/OpenOVR/-/issues/416
(lib.cmakeBool "USE_SYSTEM_OPENXR" false)
(lib.cmakeBool "USE_SYSTEM_GLM" true)
];
installPhase = ''
runHook preInstall
mkdir -p $out/lib/opencomposite
cp -r bin/ $out/lib/opencomposite
touch $out/lib/opencomposite/bin/version.txt
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Reimplementation of OpenVR, translating calls to OpenXR";
homepage = "https://gitlab.com/znixian/OpenOVR";
license = with lib.licenses; [ gpl3Only ];
maintainers = with lib.maintainers; [ Scrumplex ];
# This can realistically only work on systems that support OpenXR Loader
inherit (openxr-loader.meta) platforms;
};
})