mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-12 07:30:04 +03:00
python3Packages.f3d: add python module
This commit is contained in:
parent
96b429b0b0
commit
6ffd76f080
@ -6,11 +6,11 @@
|
||||
, gzip
|
||||
, vtk_9
|
||||
, autoPatchelfHook
|
||||
, libX11
|
||||
, libGL
|
||||
, Cocoa
|
||||
, OpenGL
|
||||
, python3Packages
|
||||
, withManual ? !stdenv.isDarwin
|
||||
, withPythonBinding ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -37,7 +37,16 @@ stdenv.mkDerivation rec {
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = [ vtk_9 ] ++ lib.optionals stdenv.isDarwin [ Cocoa OpenGL ];
|
||||
buildInputs = [
|
||||
vtk_9
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Cocoa
|
||||
OpenGL
|
||||
] ++ lib.optionals withPythonBinding [
|
||||
python3Packages.python
|
||||
# Using C++ header files, not Python import
|
||||
python3Packages.pybind11
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
# conflict between VTK and Nixpkgs;
|
||||
@ -47,6 +56,8 @@ stdenv.mkDerivation rec {
|
||||
"-DCMAKE_INSTALL_BINDIR=bin"
|
||||
] ++ lib.optionals withManual [
|
||||
"-DF3D_LINUX_GENERATE_MAN=ON"
|
||||
] ++ lib.optionals withPythonBinding [
|
||||
"-DF3D_BINDINGS_PYTHON=ON"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -4052,6 +4052,11 @@ self: super: with self; {
|
||||
|
||||
ezyrb = callPackage ../development/python-modules/ezyrb { };
|
||||
|
||||
f3d = toPythonModule (pkgs.f3d.override {
|
||||
withPythonBinding = true;
|
||||
python3Packages = self;
|
||||
});
|
||||
|
||||
f5-icontrol-rest = callPackage ../development/python-modules/f5-icontrol-rest { };
|
||||
|
||||
f5-sdk = callPackage ../development/python-modules/f5-sdk { };
|
||||
|
Loading…
Reference in New Issue
Block a user