mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
f3d: Add openusd plugin
This commit is contained in:
parent
ae4459d5c9
commit
9f25810cd5
1 changed files with 12 additions and 0 deletions
|
@ -6,6 +6,9 @@
|
||||||
cmake,
|
cmake,
|
||||||
help2man,
|
help2man,
|
||||||
gzip,
|
gzip,
|
||||||
|
libXt,
|
||||||
|
openusd,
|
||||||
|
tbb,
|
||||||
# There is a f3d overridden with EGL enabled vtk in top-level/all-packages.nix
|
# 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
|
# 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.
|
# See https://github.com/NixOS/nixpkgs/pull/324022. This may change later.
|
||||||
|
@ -17,6 +20,7 @@
|
||||||
fontconfig,
|
fontconfig,
|
||||||
withManual ? !stdenv.hostPlatform.isDarwin,
|
withManual ? !stdenv.hostPlatform.isDarwin,
|
||||||
withPythonBinding ? false,
|
withPythonBinding ? false,
|
||||||
|
withUsd ? openusd.meta.available,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -66,6 +70,11 @@ stdenv.mkDerivation rec {
|
||||||
python3Packages.python
|
python3Packages.python
|
||||||
# Using C++ header files, not Python import
|
# Using C++ header files, not Python import
|
||||||
python3Packages.pybind11
|
python3Packages.pybind11
|
||||||
|
]
|
||||||
|
++ lib.optionals withUsd [
|
||||||
|
libXt
|
||||||
|
openusd
|
||||||
|
tbb
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
|
@ -84,6 +93,9 @@ stdenv.mkDerivation rec {
|
||||||
]
|
]
|
||||||
++ lib.optionals withPythonBinding [
|
++ lib.optionals withPythonBinding [
|
||||||
"-DF3D_BINDINGS_PYTHON=ON"
|
"-DF3D_BINDINGS_PYTHON=ON"
|
||||||
|
]
|
||||||
|
++ lib.optionals withUsd [
|
||||||
|
"-DF3D_PLUGIN_BUILD_USD=ON"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue