-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
tauray: init at 1.0.1 #196855
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
tauray: init at 1.0.1 #196855
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| { lib | ||
| , stdenv | ||
| , fetchFromGitHub | ||
| , cmake | ||
| , graphviz | ||
| , doxygen | ||
| , pkg-config | ||
| , python3 | ||
| , libcbor | ||
| , czmq | ||
| , glm | ||
| , nng | ||
| , mbedtls | ||
| , openxr-loader | ||
| , SDL2 | ||
| , shaderc | ||
| , spirv-headers | ||
| , vulkan-headers | ||
| , vulkan-loader | ||
| , wayland | ||
| }: | ||
|
|
||
| stdenv.mkDerivation (finalAttrs: { | ||
| pname = "tauray"; | ||
| version = "1.0.1"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "vga-group"; | ||
| repo = "tauray"; | ||
| rev = "v${finalAttrs.version}"; | ||
| sha256 = "sha256-Q3Dv96iptDvmBp9mIVSYzb7EnIzD1kFejwrFuc1HqdU="; | ||
| fetchSubmodules = true; | ||
| }; | ||
|
|
||
| buildInputs = [ | ||
| czmq | ||
| glm | ||
| libcbor | ||
| nng | ||
| mbedtls | ||
| openxr-loader | ||
| (SDL2.override { withStatic = true; }) | ||
AndersonTorres marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| vulkan-loader | ||
| wayland | ||
| ]; | ||
|
|
||
| nativeBuildInputs = [ | ||
| cmake | ||
| graphviz | ||
| doxygen | ||
| pkg-config | ||
| python3 | ||
| shaderc | ||
| vulkan-headers | ||
| ]; | ||
|
|
||
| meta = with lib; { | ||
| description = "A real-time rendering framework, with a focus on distributed computing, scalability, portability and low latency"; | ||
| homepage = "https://github.com/vga-group/tauray"; | ||
| license = licenses.lgpl21Only; | ||
| maintainers = with maintainers; [ jansol ]; | ||
| platforms = platforms.linux ++ platforms.darwin; | ||
| }; | ||
|
||
| }) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have multiple of those submodules in nixpkgs https://github.com/vga-group/tauray/blob/main/.gitmodules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would I go about fetching only the ones that aren't in nixpkgs? Some of them also break compatibility frequently so they need to be pinned to specific versions according to upstream.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fetcher has no support for that. If it is only one it can be manually done. If there are multiple that is cumbersome. Are there options to build with a system variant? If not we could rm the replaced submodules in postFetch and then symlink ours into place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately there are no options for that. I'd have to PR such a change upstream first.
IIRC when I asked about it the response I got was that vulkan-headers need to be pinned since tauray uses the C++ bindings which have changed multiple times without warning and glslang is used through its library interface which is unstable. Spirv-headers and OpenXR-SDK are probably okay to replace with a packaged version.
fuchsia_radix_sortwould need to be packaged manually but there are no changes on the horizon to it so it should be quite safe too.