f3d: Add openusd plugin (#407347)

authored by Peder Bergebakken Sundt and committed by GitHub 7d7f746b 4f4c9082

+12
+12
pkgs/by-name/f3/f3d/package.nix
··· 6 6 cmake, 7 7 help2man, 8 8 gzip, 9 + libXt, 10 + openusd, 11 + tbb, 9 12 # There is a f3d overridden with EGL enabled vtk in top-level/all-packages.nix 10 13 # compiling with EGL enabled vtk will result in f3d running in headless mode 11 14 # See https://github.com/NixOS/nixpkgs/pull/324022. This may change later. ··· 17 20 fontconfig, 18 21 withManual ? !stdenv.hostPlatform.isDarwin, 19 22 withPythonBinding ? false, 23 + withUsd ? openusd.meta.available, 20 24 }: 21 25 22 26 stdenv.mkDerivation rec { ··· 66 70 python3Packages.python 67 71 # Using C++ header files, not Python import 68 72 python3Packages.pybind11 73 + ] 74 + ++ lib.optionals withUsd [ 75 + libXt 76 + openusd 77 + tbb 69 78 ]; 70 79 71 80 cmakeFlags = ··· 84 93 ] 85 94 ++ lib.optionals withPythonBinding [ 86 95 "-DF3D_BINDINGS_PYTHON=ON" 96 + ] 97 + ++ lib.optionals withUsd [ 98 + "-DF3D_PLUGIN_BUILD_USD=ON" 87 99 ]; 88 100 89 101 meta = with lib; {