[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/11: gnu: Add cura.
From: |
guix-commits |
Subject: |
11/11: gnu: Add cura. |
Date: |
Thu, 7 Apr 2022 16:40:23 -0400 (EDT) |
glv pushed a commit to branch master
in repository guix.
commit b74932988831461e420a69e66d6a0f95fb5a5d44
Author: Malte Frank Gerdes <malte.f.gerdes@gmail.com>
AuthorDate: Thu Apr 7 17:42:45 2022 +0200
gnu: Add cura.
* gnu/packages/engineering.scm (cura): New variable.
Co-authored-by: Guillaume Le Vaillant <glv@posteo.net>
---
gnu/packages/engineering.scm | 59 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index ff528af8fb..17f554df72 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -3572,3 +3572,62 @@ belongs to the Cura project from Ultimaker.")
(description "LibSavitar is a C++ implementation of 3mf loading with SIP
python bindings. It belongs to the Cura project from Ultimaker.")
(license license:lgpl3+)))
+
+(define-public cura
+ (package
+ (name "cura")
+ (version "4.13.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 "0yg17pcrj5gm02aqcjfk40ynvpb9r9aaq9rj108dkpki1is15ks7"))))
+ (build-system qt-build-system)
+ (native-inputs
+ (list python-certifi
+ python-mypy
+ python-pytest
+ python-requests))
+ (inputs
+ (list cura-engine
+ libcharon
+ libsavitar
+ python
+ python-keyring
+ python-pynest2d
+ python-pyserial
+ python-sentry-sdk
+ python-sip
+ uranium))
+ (arguments
+ `(;; TODO: Fix tests.
+ #:tests? #f
+ #: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"))))
+ (add-after 'link-to-CuraEngine 'wrap-pythonpath
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (wrap-program (string-append out "/bin/cura")
+ (list "GUIX_PYTHONPATH"
+ 'prefix (list (string-append out
+ "/lib/python"
+ ,(version-major+minor
+ (package-version python))
+ "/site-packages")
+ (getenv "GUIX_PYTHONPATH"))))))))))
+ (home-page "https://github.com/Ultimaker/Cura")
+ (synopsis "Slicer for 3D printers")
+ (description "Cura is a slicing software from Ultimaker. A @emph{slicer}
+generates G-Code for 3D printers.")
+ (license license:lgpl3+)))
- branch master updated (7409f246e2 -> b749329888), guix-commits, 2022/04/07
- 01/11: gnu: Add libarcus., guix-commits, 2022/04/07
- 04/11: gnu: Add python-pyinstrument., guix-commits, 2022/04/07
- 06/11: gnu: Add uranium., guix-commits, 2022/04/07
- 11/11: gnu: Add cura.,
guix-commits <=
- 07/11: gnu: Add libcharon., guix-commits, 2022/04/07
- 02/11: gnu: Add cura-engine., guix-commits, 2022/04/07
- 03/11: gnu: Add cura-binary-data., guix-commits, 2022/04/07
- 05/11: gnu: Add python-trimesh., guix-commits, 2022/04/07
- 08/11: gnu: Add libsavitar., guix-commits, 2022/04/07
- 10/11: gnu: Add python-pynest2d., guix-commits, 2022/04/07
- 09/11: gnu: Add libnest2d-for-cura., guix-commits, 2022/04/07