freeecad: add an option to support ifc files
This commit is contained in:
committed by
Augustin Trancart
parent
b4e712082d
commit
64477a8219
@@ -0,0 +1,7 @@
|
||||
This package supports the following parameters:
|
||||
|
||||
- withWayland (default: true): when false, set QT_QPA_PLATFORM to xcb
|
||||
- spaceNavSupport (enabled by default on linux): whether to enable
|
||||
[spacenavd support](https://spacenav.sourceforge.net/)
|
||||
- ifcSupport (default: false): whether to enable ifc support through
|
||||
ifcopenshell
|
||||
@@ -23,6 +23,7 @@
|
||||
, pkg-config
|
||||
, python311Packages
|
||||
, spaceNavSupport ? stdenv.hostPlatform.isLinux
|
||||
, ifcSupport ? false
|
||||
, stdenv
|
||||
, swig
|
||||
, vtk
|
||||
@@ -47,6 +48,7 @@ let
|
||||
inherit (python311Packages)
|
||||
boost
|
||||
gitpython
|
||||
ifcopenshell
|
||||
matplotlib
|
||||
pivy
|
||||
ply
|
||||
@@ -126,6 +128,9 @@ freecad-utils.makeCustomizable (stdenv.mkDerivation (finalAttrs: {
|
||||
++ lib.optionals spaceNavSupport [
|
||||
libspnav
|
||||
qtx11extras
|
||||
]
|
||||
++ lib.optionals ifcSupport [
|
||||
ifcopenshell
|
||||
];
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{
|
||||
callPackage,
|
||||
freecad,
|
||||
}:
|
||||
{
|
||||
python-path = callPackage ./python-path.nix { };
|
||||
modules = callPackage ./modules.nix { };
|
||||
withIfcSupport = freecad.override { ifcSupport = true; };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user