Skip to content

Commit 7d7f746

Browse files
authored
f3d: Add openusd plugin (#407347)
2 parents 4f4c908 + 9f25810 commit 7d7f746

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkgs/by-name/f3/f3d/package.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
cmake,
77
help2man,
88
gzip,
9+
libXt,
10+
openusd,
11+
tbb,
912
# There is a f3d overridden with EGL enabled vtk in top-level/all-packages.nix
1013
# compiling with EGL enabled vtk will result in f3d running in headless mode
1114
# See https://github.com/NixOS/nixpkgs/pull/324022. This may change later.
@@ -17,6 +20,7 @@
1720
fontconfig,
1821
withManual ? !stdenv.hostPlatform.isDarwin,
1922
withPythonBinding ? false,
23+
withUsd ? openusd.meta.available,
2024
}:
2125

2226
stdenv.mkDerivation rec {
@@ -66,6 +70,11 @@ stdenv.mkDerivation rec {
6670
python3Packages.python
6771
# Using C++ header files, not Python import
6872
python3Packages.pybind11
73+
]
74+
++ lib.optionals withUsd [
75+
libXt
76+
openusd
77+
tbb
6978
];
7079

7180
cmakeFlags =
@@ -84,6 +93,9 @@ stdenv.mkDerivation rec {
8493
]
8594
++ lib.optionals withPythonBinding [
8695
"-DF3D_BINDINGS_PYTHON=ON"
96+
]
97+
++ lib.optionals withUsd [
98+
"-DF3D_PLUGIN_BUILD_USD=ON"
8799
];
88100

89101
meta = with lib; {

0 commit comments

Comments
 (0)