guix-patches
[Top][All Lists]
Advanced

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

[bug#44045] [PATCH 07/10] gnu: Add cura.


From: Malte Frank Gerdes
Subject: [bug#44045] [PATCH 07/10] gnu: Add cura.
Date: Sat, 17 Oct 2020 12:35:44 +0200

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

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index a65cbb81e8..2a7dfe470f 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -3075,3 +3075,46 @@ belongs to the Cura project from Ultimaker.")
 python bindings.  It belongs to the Cura project from Ultimaker.")
       (license license:lgpl3))))
 
+(define-public cura
+  (package
+    (name "cura")
+    (version "4.7.1")
+    (source
+     (origin
+       (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/Ultimaker/Cura";)
+               (commit version)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "19an168iad3cb5w8i71c0wbr79qnz5qnpxqx1j6dgh64qz6ffn2r"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("mypy" ,python-mypy)
+       ("pytest" ,python-pytest)
+       ("certifi" ,python-certifi)
+       ("requests" ,python-requests)))
+    (inputs
+     `(("uranium" ,uranium)
+       ("cura-engine" ,cura-engine)
+       ("serial" ,python-pyserial)
+       ("savitar" ,libSavitar)
+       ("charon" ,libCharon)
+       ("sip" ,python-sip)))
+    (arguments
+     `(#:tests? #false
+       #:configure-flags '("-DURANIUM_SCRIPTS_DIR=")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'link-to-CuraEngine
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (symlink (string-append (assoc-ref inputs "cura-engine")
+                                     "/bin/CuraEngine")
+                      (string-append (assoc-ref outputs "out")
+                                     "/bin/CuraEngine"))
+             #true)))))
+    (home-page "https://github.com/Ultimaker/Cura";)
+    (synopsis "Cura Slicer")
+    (description "Cura is a slicing software from Ultimaker.  A @emph{Slicer}
+generates G-Code for 3D printers.")
+    (license license:lgpl3)))
-- 
2.28.0






reply via email to

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