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