freeecad: add an option to support ifc files

This commit is contained in:
Augustin Trancart
2025-01-18 23:03:48 +01:00
committed by Augustin Trancart
parent b4e712082d
commit 64477a8219
3 changed files with 14 additions and 0 deletions
+7
View File
@@ -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
+5
View File
@@ -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; };
}