mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Add cura-engine.
* gnu/packages/engineering.scm (cura-engine): New variable. Co-authored-by: Guillaume Le Vaillant <glv@posteo.net>
This commit is contained in:
parent
390d68c956
commit
742a7d897f
1 changed files with 43 additions and 0 deletions
|
@ -127,6 +127,7 @@ (define-module (gnu packages engineering)
|
|||
#:use-module (gnu packages ruby)
|
||||
#:use-module (gnu packages serialization)
|
||||
#:use-module (gnu packages sqlite)
|
||||
#:use-module (gnu packages stb)
|
||||
#:use-module (gnu packages swig)
|
||||
#:use-module (gnu packages tbb)
|
||||
#:use-module (gnu packages tcl)
|
||||
|
@ -3289,3 +3290,45 @@ (define-public libarcus
|
|||
messages based on the Protocol Buffers library. It is designed to
|
||||
facilitate the communication between Cura and its backend and similar code.")
|
||||
(license license:lgpl3+)))
|
||||
|
||||
(define-public cura-engine
|
||||
(package
|
||||
(name "cura-engine")
|
||||
(version "4.13.1")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/Ultimaker/CuraEngine")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0xp2r0m5wwfsh9wdb3biqzvfqfz5jsmyw4bww93aksw0rgli07bp"))))
|
||||
(build-system cmake-build-system)
|
||||
(native-inputs
|
||||
(list googletest pkg-config))
|
||||
(inputs
|
||||
(list libarcus protobuf stb-image))
|
||||
(arguments
|
||||
`(#:configure-flags '("-DBUILD_TESTS=ON")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-paths
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "../source/cmake/FindStb.cmake"
|
||||
(("/usr/include")
|
||||
(string-append (assoc-ref inputs "stb-image")
|
||||
"/include"))
|
||||
(("stb/stb_image_resize.h")
|
||||
"stb_image.h"))
|
||||
(substitute*
|
||||
"../source/src/infill/ImageBasedDensityProvider.cpp"
|
||||
(("stb/stb_image.h")
|
||||
"stb_image.h")))))))
|
||||
(home-page "https://github.com/Ultimaker/CuraEngine")
|
||||
(synopsis "Cura slicing engine")
|
||||
(description "CuraEngine is a powerful, fast and robust engine for
|
||||
processing 3D models into 3D printing instruction for Ultimaker and other
|
||||
GCode based 3D printers. It is part of the larger open source project called
|
||||
Cura.")
|
||||
(license license:agpl3+)))
|
||||
|
|
Loading…
Reference in a new issue