From 9f25810cd54623ce0ed6816118147efabb3185ff Mon Sep 17 00:00:00 2001 From: ShaddyDC Date: Thu, 15 May 2025 14:20:45 +0200 Subject: [PATCH] f3d: Add openusd plugin --- pkgs/by-name/f3/f3d/package.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/by-name/f3/f3d/package.nix b/pkgs/by-name/f3/f3d/package.nix index 9ca7fcb6e3ae..24636fa72fd3 100644 --- a/pkgs/by-name/f3/f3d/package.nix +++ b/pkgs/by-name/f3/f3d/package.nix @@ -6,6 +6,9 @@ cmake, help2man, gzip, + libXt, + openusd, + tbb, # There is a f3d overridden with EGL enabled vtk in top-level/all-packages.nix # compiling with EGL enabled vtk will result in f3d running in headless mode # See https://github.com/NixOS/nixpkgs/pull/324022. This may change later. @@ -17,6 +20,7 @@ fontconfig, withManual ? !stdenv.hostPlatform.isDarwin, withPythonBinding ? false, + withUsd ? openusd.meta.available, }: stdenv.mkDerivation rec { @@ -66,6 +70,11 @@ stdenv.mkDerivation rec { python3Packages.python # Using C++ header files, not Python import python3Packages.pybind11 + ] + ++ lib.optionals withUsd [ + libXt + openusd + tbb ]; cmakeFlags = @@ -84,6 +93,9 @@ stdenv.mkDerivation rec { ] ++ lib.optionals withPythonBinding [ "-DF3D_BINDINGS_PYTHON=ON" + ] + ++ lib.optionals withUsd [ + "-DF3D_PLUGIN_BUILD_USD=ON" ]; meta = with lib; {