From fbb1b92560e2e48868975aa56e329b5dcd8e20f4 Mon Sep 17 00:00:00 2001 From: nomike Date: Tue, 6 Jan 2026 02:35:40 +0100 Subject: gnu: pythonscad: Update to 0.8.4. * gnu/packages/engineering.scm (pythonscad): Update to 0.8.4. [source]: Use version tag instead of commit hash. [arguments]: Remove OPENSCAD_COMMIT configure flag. Fix CMakeLists.txt substitution to use OpenSCADLibInternal instead of OpenSCAD. Change-Id: I08b0ac1488fa958912a77292b8bcef15bde653e1 Signed-off-by: Andreas Enge Signed-off-by: Rutherther --- gnu/packages/engineering.scm | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 789d866d8cc..fb1c81df95e 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -42,7 +42,7 @@ ;;; Copyright © 2024 Juliana Sims ;;; Copyright © 2024 Nguyễn Gia Phong ;;; Copyright © 2025 Frederick Muriuki Muriithi -;;; Copyright © 2025 nomike Postmann +;;; Copyright © 2025, 2026 nomike Postmann ;;; Copyright © 2025 Matthew Elwin ;;; Copyright © 2025 Janneke Nieuwenhuizen ;;; Copyright © 2025 Remco van 't Veer @@ -2993,25 +2993,22 @@ models in the STL and OFF file formats.") (license license:gpl2+)))) (define-public pythonscad - (let ((commit "92071afdffa6e2f6d99fe7e695c40044ec8aa16a") - (version "0.0.0") - (revision "5")) - (package + (package (inherit openscad) (name "pythonscad") - (version (git-version version revision commit)) + (version "0.8.4") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/pythonscad/pythonscad") - (commit commit) + (commit (string-append "v" version)) ;; Needed for libraries/MCAD, a library specific to OpenSCAD ;; which is included as a submodule. All other libraries are ;; deleted in the patch-source build phase. (recursive? #t))) (sha256 - (base32 "1ivjbcf52xzavyrld5xjii7yrqf27c244ndzvysrdaz53s06nk90")) + (base32 "0gnifi8is0dl00vir5nd1k76kkcavb62v115g34198lzqnwiy0fc")) (modules '((guix build utils))) (snippet #~(begin ;; Delete all unbundled libraries to replace them with @@ -3036,8 +3033,6 @@ models in the STL and OFF file formats.") "-DUSE_BUILTIN_LIBFIVE=OFF" (string-append "-DOPENSCAD_VERSION=" #$version) - (string-append "-DOPENSCAD_COMMIT=" - #$commit) (string-append "-DPYTHON_VERSION=" #$(version-major+minor (package-version python))))))) @@ -3048,11 +3043,11 @@ models in the STL and OFF file formats.") (substitute* "CMakeLists.txt" ;; Fix detection of EGL (see ;; https://github.com/openscad/openscad/issues/5880). - (("target_link_libraries\\(OpenSCAD PRIVATE OpenGL::EGL\\)") + (("target_link_libraries\\(OpenSCADLibInternal PUBLIC OpenGL::EGL\\)") "find_package(ECM REQUIRED NO_MODULE) list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) find_package(EGL REQUIRED) - target_link_libraries(OpenSCAD PRIVATE EGL::EGL)") + target_link_libraries(OpenSCADLibInternal PUBLIC EGL::EGL)") ;; Use the system sanitizers-cmake module. (("\\$\\{CMAKE_SOURCE_DIR\\}/submodules/sanitizers-cmake/cmake") (string-append (assoc-ref inputs "sanitizers-cmake") @@ -3066,7 +3061,7 @@ to turn simple code into 3D models suitable for 3D printing. It is a fork of OpenSCAD which not only adds support for using Python as a native language, but also adds new features and improves existing ones.") (home-page "https://pythonscad.org/") - (license license:gpl2+)))) + (license license:gpl2+))) (define-public emacs-scad-mode (package -- cgit v1.3