diff mbox series

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

Message ID 20201017103547.13769-7-malte.f.gerdes@gmail.com
State New
Headers show
Series WIP Ultimaker Cura | expand

Checks

Context Check Description
cbaines/issue success View issue
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job

Commit Message

Malte Frank Gerdes Oct. 17, 2020, 10:35 a.m. UTC
* gnu/packages/engineering.scm (cura): New variable.
---
 gnu/packages/engineering.scm | 43 ++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
diff mbox series

Patch

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)))