diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 2abf15a7849cb..b9304a5fc6f80 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7777,6 +7777,12 @@ githubId = 2422454; name = "Kai Wohlfahrt"; }; + kyaru = { + email = "65301509+KiruyaMomochi@users.noreply.github.com"; + github = "KiruyaMomochi"; + githubId = 65301509; + name = "Kiruya Momochi"; + }; kyleondy = { email = "kyle@ondy.org"; github = "KyleOndy"; diff --git a/pkgs/development/libraries/openxr-hpp/default.nix b/pkgs/development/libraries/openxr-hpp/default.nix new file mode 100644 index 0000000000000..6158755e051da --- /dev/null +++ b/pkgs/development/libraries/openxr-hpp/default.nix @@ -0,0 +1,44 @@ +{ lib +, fetchFromGitHub +, cmake +, stdenv +, python3 +, python3Packages +, vulkan-loader +, vulkan-headers +, openxr-loader +, gtest +}: +stdenv.mkDerivation rec { + pname = "openxr-hpp"; + version = "1.0.26"; + + src = fetchFromGitHub { + owner = "KhronosGroup"; + repo = "OpenXR-HPP"; + rev = "release-${version}"; + hash = "sha256-JEqE5QLpgec+/RMWrmGCi6w7/n53t9ThjxwbgqT4lNk="; + }; + + nativeBuildInputs = [ cmake python3 python3Packages.jinja2 vulkan-loader vulkan-headers openxr-loader ]; + + cmakeFlags = [ + "-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}" + "-DSKIP_EZVCPKG=ON" + "-DOPENXR_SDK_SRC_DIR=${openxr-loader.src}" + ]; + + buildPhase = '' + make generate_headers + ''; + + doCheck = true; + checkInputs = [ gtest ]; + + meta = with lib; { + description = "Open-Source OpenXR C++ language projection"; + homepage = "https://github.com/KhronosGroup/OpenXR-Hpp"; + license = licenses.asl20; + maintainers = with maintainers; [ kyaru ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dc9f67d7255c4..1338ae97bcfbd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24332,6 +24332,8 @@ with pkgs; openxr-loader = callPackage ../development/libraries/openxr-loader { }; + openxr-hpp = callPackage ../development/libraries/openxr-hpp { }; + osrm-backend = callPackage ../servers/osrm-backend { }; oven-media-engine = callPackage ../servers/misc/oven-media-engine { };