depot/third_party/nixpkgs/pkgs/development/libraries/opencomposite/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

65 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, cmake
, glm
, libGL
, openxr-loader
, python3
, vulkan-headers
, vulkan-loader
, xorg
, nix-update-script
}:
stdenv.mkDerivation {
pname = "opencomposite";
version = "unstable-2024-01-14";
src = fetchFromGitLab {
owner = "znixian";
repo = "OpenOVR";
rev = "57ecdd2675fd1baeab7d9cf55b6e827f19a65530";
hash = "sha256-OOJNQzFRPSdLrIaDrGke12ubIiSjdD/vvHBz0WjGf3c=";
};
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 = nix-update-script {
extraArgs = [ "--version=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 ];
};
}