at 23.11-beta 59 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchFromGitLab 4 5, cmake 6 7, glm 8, libGL 9, openxr-loader 10, python3 11, vulkan-headers 12, vulkan-loader 13, xorg 14}: 15 16stdenv.mkDerivation { 17 pname = "opencomposite"; 18 version = "unstable-2023-09-11"; 19 20 src = fetchFromGitLab { 21 owner = "znixian"; 22 repo = "OpenOVR"; 23 rev = "cca18158a4b6921df54e84a3b23ff459f76a2bde"; 24 hash = "sha256-VREApt4juz283aJVLZoBbqg01PNs4XBxmpr/UIMlaK8="; 25 }; 26 27 nativeBuildInputs = [ 28 cmake 29 ]; 30 31 buildInputs = [ 32 glm 33 libGL 34 openxr-loader 35 python3 36 vulkan-headers 37 vulkan-loader 38 xorg.libX11 39 ]; 40 41 cmakeFlags = [ 42 "-DUSE_SYSTEM_OPENXR=ON" 43 "-DUSE_SYSTEM_GLM=ON" 44 ]; 45 46 installPhase = '' 47 runHook preInstall 48 mkdir -p $out/lib/opencomposite 49 cp -r bin/ $out/lib/opencomposite 50 runHook postInstall 51 ''; 52 53 meta = with lib; { 54 description = "Reimplementation of OpenVR, translating calls to OpenXR"; 55 homepage = "https://gitlab.com/znixian/OpenOVR"; 56 license = with licenses; [ gpl3Only ]; 57 maintainers = with maintainers; [ Scrumplex ]; 58 }; 59}