guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/11: gnu: Add libnest2d-for-cura.


From: guix-commits
Subject: 09/11: gnu: Add libnest2d-for-cura.
Date: Thu, 7 Apr 2022 16:40:22 -0400 (EDT)

glv pushed a commit to branch master
in repository guix.

commit ace3a7ad89b1cc5c16cf2455248014b222b0f945
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Thu Apr 7 22:01:22 2022 +0200

    gnu: Add libnest2d-for-cura.
    
    * gnu/packages/engineering.scm (libnest2d-for-cura): New variable.
---
 gnu/packages/engineering.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 0bf4681ea1..a1f96771a1 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -76,6 +76,7 @@
   #:use-module (gnu packages cmake)
   #:use-module (gnu packages commencement)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages cpp)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages dejagnu)
   #:use-module (gnu packages digest)
@@ -3431,6 +3432,37 @@ related desktop applications using PyQt5.  It belongs to 
the Cura project
 from Ultimaker.")
     (license license:lgpl3+)))
 
+(define-public libnest2d-for-cura
+  ;; Cura uses a custom fork of the libnest2d library.
+  (package
+    (name "libnest2d-for-cura")
+    (version "4.12.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/Ultimaker/libnest2d";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1wk7cv8sqnxy7srq61scrr18dz2i0l4s4slmjfh4890iy0wf9i7n"))))
+    (build-system cmake-build-system)
+    (inputs
+     (list boost clipper nlopt))
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'fix-clipper-detection
+           (lambda* (#:key inputs #:allow-other-keys)
+             (setenv "CLIPPER_PATH" (assoc-ref inputs "clipper")))))))
+    (home-page "https://github.com/Ultimaker/libnest2d";)
+    (synopsis "2D irregular bin packaging and nesting library")
+    (description
+     "Libnest2D is a library and framework for the 2D bin packaging
+problem.  It was inspired from the SVGNest Javascript library.")
+    (license license:lgpl3)))
+
 (define-public libcharon
   (package
     (name "libcharon")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]