summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCayetano Santos <csantosb@inventati.org>2026-03-26 10:30:28 +0100
committerCayetano Santos <csantosb@inventati.org>2026-03-26 11:20:31 +0100
commit30cde509861e971780f2d4945e76afc8dc7e587c (patch)
tree8e1599538de54594799ba194b446659cccf961a5
parent5bc225abfcb74931fc8b4c62cbe326272337647f (diff)
gnu: freecad: Refresh package.
* gnu/packages/engineering.scm (freecad)[arguments]: Use G-Expressions; move after ’build-system. [source]: Use G-Expressions in ’snippet. Change-Id: I91710bc2b0e67489babdba9978c5c629bce4c205
-rw-r--r--gnu/packages/engineering.scm62
1 files changed, 31 insertions, 31 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 3ad9b31765b..48b76f7cbea 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2957,15 +2957,39 @@ dynamics is used by FreeCAD 1.0.0 for its new Assembly workbench.")
(file-name (git-file-name name version))
(sha256
(base32 "1zyz473fzrz9h073wp4k65qq4bkhqsp245nsv6nv186sl78l99xa"))
- (modules '((guix build utils)))
(snippet
- '(begin
- ;; not required, because 3D mouse support if OFF
- (delete-file-recursively "src/3rdParty/3Dconnexion")
- (delete-file-recursively "src/3rdParty/GSL") ;; c++-gsl
- (delete-file-recursively "src/3rdParty/OndselSolver") ;; ondsel-solver
- (delete-file-recursively "src/3rdParty/OpenGL"))))) ;; glext.h from mesa
+ #~(begin
+ (use-modules (guix build utils))
+ ;; not required, because 3D mouse support if OFF
+ (delete-file-recursively "src/3rdParty/3Dconnexion")
+ (delete-file-recursively "src/3rdParty/GSL") ;; c++-gsl
+ (delete-file-recursively "src/3rdParty/OndselSolver") ;; ondsel-solver
+ (delete-file-recursively "src/3rdParty/OpenGL"))))) ;; glext.h from mesa
(build-system qt-build-system)
+ (arguments
+ (list
+ #:tests? #f ;; Project has tests, but they are a pain to build
+ #:configure-flags
+ #~(list
+ "-DBUILD_FLAT_MESH:BOOL=ON"
+ "-DBUILD_ENABLE_CXX_STD:STRING=C++17"
+ "-DENABLE_DEVELOPER_TESTS=OFF" ;; see the above: #:tests? comment
+ "-DFREECAD_QT_VERSION=6" ;; Build with Qt6
+ "-DFREECAD_USE_EXTERNAL_ONDSELSOLVER=ON" ;; unbundle ondsel-solver
+ ;; Do not try to install modules into system python
+ "-DINSTALL_TO_SITEPACKAGES=OFF"
+ (string-append "-DCMAKE_INSTALL_LIBDIR=" #$output "/lib"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'restore-pythonpath
+ (lambda _
+ (substitute* "src/Main/MainGui.cpp"
+ (("_?putenv\\(\"PYTHONPATH=\"\\);") ""))))
+ (add-after 'install 'wrap-pythonpath
+ (lambda _
+ (wrap-program (string-append #$output "/bin/FreeCAD")
+ (list "GUIX_PYTHONPATH"
+ 'prefix (list (getenv "GUIX_PYTHONPATH")))))))))
(native-inputs
(list c++-gsl
doxygen
@@ -3023,30 +3047,6 @@ dynamics is used by FreeCAD 1.0.0 for its new Assembly workbench.")
xerces-c
yaml-cpp
zlib))
- (arguments
- `(#:tests? #f ;; Project has tests, but they are a pain to build
- #:configure-flags
- ,#~(list
- "-DBUILD_FLAT_MESH:BOOL=ON"
- "-DBUILD_ENABLE_CXX_STD:STRING=C++17"
- "-DENABLE_DEVELOPER_TESTS=OFF" ;; see the above: #:tests? comment
- "-DFREECAD_QT_VERSION=6" ;; Build with Qt6
- "-DFREECAD_USE_EXTERNAL_ONDSELSOLVER=ON" ;; unbundle ondsel-solver
- ;; Do not try to install modules into system python
- "-DINSTALL_TO_SITEPACKAGES=OFF"
- (string-append "-DCMAKE_INSTALL_LIBDIR=" #$output "/lib"))
- #:phases
- (modify-phases %standard-phases
- (add-before 'configure 'restore-pythonpath
- (lambda _
- (substitute* "src/Main/MainGui.cpp"
- (("_?putenv\\(\"PYTHONPATH=\"\\);") ""))))
- (add-after 'install 'wrap-pythonpath
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (wrap-program (string-append out "/bin/FreeCAD")
- (list "GUIX_PYTHONPATH"
- 'prefix (list (getenv "GUIX_PYTHONPATH"))))))))))
(home-page "https://www.freecad.org/")
(synopsis "Your Own 3D Parametric Modeler")
(description