openvr: add Darwin dependencies

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2023-05-09 17:23:01 +02:00
parent 3e09faf615
commit 6b17182f0b
No known key found for this signature in database
GPG key ID: E13DFD4B47127951
2 changed files with 6 additions and 2 deletions

View file

@ -5,6 +5,8 @@
, jsoncpp
, fetchFromGitHub
, fetchpatch2
, Foundation
, AppKit
}:
stdenv.mkDerivation rec {
@ -41,7 +43,7 @@ stdenv.mkDerivation rec {
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ jsoncpp libGL ];
buildInputs = [ jsoncpp libGL ] ++ lib.optionals stdenv.isDarwin [ Foundation AppKit ];
cmakeFlags = [ "-DUSE_SYSTEM_JSONCPP=ON" "-DBUILD_SHARED=1" ];

View file

@ -23163,7 +23163,9 @@ with pkgs;
openvdb = callPackage ../development/libraries/openvdb { };
openvr = callPackage ../development/libraries/openvr { };
openvr = callPackage ../development/libraries/openvr {
inherit (darwin.apple_sdk.frameworks) Foundation AppKit;
};
inherit (callPackages ../development/libraries/libressl { })
libressl_3_4