depot/third_party/nixpkgs/pkgs/by-name/op/opencomposite/package.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

65 lines
1.3 KiB
Nix

{
cmake,
fetchFromGitLab,
glm,
jsoncpp,
lib,
libGL,
openxr-loader,
python3,
stdenv,
unstableGitUpdater,
vulkan-headers,
vulkan-loader,
xorg,
}:
stdenv.mkDerivation {
pname = "opencomposite";
version = "0-unstable-2024-07-23";
src = fetchFromGitLab {
owner = "znixian";
repo = "OpenOVR";
rev = "632e5cc50b913e93194ca2970e6f13021182579f";
hash = "sha256-KQmNyGRlbUrntTPNn5rzTyyR+Bvh3EfSqBgyNGGDo04=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
glm
jsoncpp
libGL
openxr-loader
python3
vulkan-headers
vulkan-loader
xorg.libX11
];
cmakeFlags = [
(lib.cmakeFeature "CMAKE_CXX_FLAGS" "-Wno-error=format-security")
(lib.cmakeBool "USE_SYSTEM_OPENXR" true)
(lib.cmakeBool "USE_SYSTEM_GLM" true)
];
installPhase = ''
runHook preInstall
mkdir -p $out/lib/opencomposite
cp -r bin/ $out/lib/opencomposite
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater {
hardcodeZeroVersion = true;
branch = "openxr";
};
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 ];
};
}