gnu: openscad: Fix python support.

* gnu/packages/engineering.scm (emacs-scad-mode)[inputs]: Add nettle.
  [arguments]: Add patch for CMake to fail build if nettle isn't found.

Change-Id: Ic6bea14048daac56dc8773bf8fbdbd3bb1f0eae9
Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
This commit is contained in:
nomike 2025-05-14 02:16:47 +02:00 committed by Guillaume Le Vaillant
parent 9b212acc38
commit a59445e65d
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -137,6 +137,7 @@
#:use-module (gnu packages multiprecision) #:use-module (gnu packages multiprecision)
#:use-module (gnu packages mpi) #:use-module (gnu packages mpi)
#:use-module (gnu packages ncurses) #:use-module (gnu packages ncurses)
#:use-module (gnu packages nettle)
#:use-module (gnu packages networking) #:use-module (gnu packages networking)
#:use-module (gnu packages openkinect) #:use-module (gnu packages openkinect)
#:use-module (gnu packages parallel) #:use-module (gnu packages parallel)
@ -3236,6 +3237,9 @@ ontinuous-time and discret-time expressions.")
list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
find_package(EGL REQUIRED) find_package(EGL REQUIRED)
target_link_libraries(OpenSCAD PRIVATE EGL::EGL)") target_link_libraries(OpenSCAD PRIVATE EGL::EGL)")
;; <https://github.com/openscad/openscad/issues/5897>
(("find_package\\(Nettle 3.4\\)")
"find_package(Nettle 3.4 REQUIRED)")
;; Use the system sanitizers-cmake module. ;; Use the system sanitizers-cmake module.
(("\\$\\{CMAKE_SOURCE_DIR\\}/submodules/sanitizers-cmake/cmake") (("\\$\\{CMAKE_SOURCE_DIR\\}/submodules/sanitizers-cmake/cmake")
(string-append (assoc-ref inputs "sanitizers-cmake") (string-append (assoc-ref inputs "sanitizers-cmake")
@ -3263,6 +3267,7 @@ ontinuous-time and discret-time expressions.")
mesa ; or libglvnd if we had mesa-glvnd, too mesa ; or libglvnd if we had mesa-glvnd, too
mimalloc mimalloc
mpfr mpfr
nettle
opencsg opencsg
python python
python-numpy python-numpy