aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2021-04-14 15:48:06 +0200
committerLeo Famulari <leo@famulari.name>2021-04-15 22:13:05 -0400
commit950475bb963468c92fd7d47300010a584c7daf55 (patch)
treeb87afa3747e7f7f549f2ead6d26db8bbfa04ef3f
parentebd021f73292bf47b26a799665d6204574bae239 (diff)
downloadguix-950475bb963468c92fd7d47300010a584c7daf55.tar
guix-950475bb963468c92fd7d47300010a584c7daf55.tar.gz
gnu: Add vtk-8.
gnu/packages/image-processing (vtk-8): New variable.
-rw-r--r--gnu/packages/image-processing.scm17
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index ce2242a658..ed21b26812 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -15,6 +15,7 @@
;;; Copyright © 2021 Oleh Malyi <astroclubzp@gmail.com>
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2021 Andy Tai <atai@atai.org>
+;;; Copyright © 2021 Ekaitz Zarraga <ekaitz@elenq.tech>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -349,6 +350,22 @@ a suite of 3D interaction widgets, supports parallel processing, and
integrates with various databases on GUI toolkits such as Qt and Tk.")
(license license:bsd-3)))
+;; freecad needs an old version of VTK, because VTK's API changed from 8 to 9
+(define-public vtk-8
+ (package (inherit vtk)
+ (version "8.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://vtk.org/files/release/"
+ (version-major+minor version)
+ "/VTK-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1fspgp8k0myr6p2a6wkc21ldcswb4bvmb484m12mxgk1a9vxrhrl"))))
+ (inputs
+ `(("jsoncpp" ,jsoncpp-for-tensorflow)
+ ,@(alist-delete "jsoncpp" (package-inputs vtk))))))
+
;; itksnap needs an older variant of VTK.
(define-public vtk-6
(package (inherit vtk)