Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openxr-hpp: init at 1.0.26 #206491

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7777,6 +7777,12 @@
githubId = 2422454;
name = "Kai Wohlfahrt";
};
kyaru = {
email = "[email protected]";
github = "KiruyaMomochi";
githubId = 65301509;
name = "Kiruya Momochi";
};
kyleondy = {
email = "[email protected]";
github = "KyleOndy";
Expand Down
44 changes: 44 additions & 0 deletions pkgs/development/libraries/openxr-hpp/default.nix
Original file line number Diff line number Diff line change
@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add changelog:

Suggested change
license = licenses.asl20;
changelog = "https://github.com/KhronosGroup/OpenXR-Hpp/releases/tag/release-${version}";
license = licenses.asl20;

maintainers = with maintainers; [ kyaru ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24332,6 +24332,8 @@ with pkgs;

openxr-loader = callPackage ../development/libraries/openxr-loader { };

openxr-hpp = callPackage ../development/libraries/openxr-hpp { };

Comment on lines +24335 to +24336
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New packages should go to pkgs/by-name nowadays.

Suggested change
openxr-hpp = callPackage ../development/libraries/openxr-hpp { };

osrm-backend = callPackage ../servers/osrm-backend { };

oven-media-engine = callPackage ../servers/misc/oven-media-engine { };
Expand Down