gnu: inspekt3d: Adjust to changes in libfive.

* gnu/packages/engineering.scm (inspekt3d)[arguments]: Use G-expression; patch
file to avoid loading removed extension; adjust name of libfive library.
This commit is contained in:
Ricardo Wurmus 2023-04-24 09:53:06 +02:00
parent 2d4888b791
commit e2c1506e86
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -975,16 +975,17 @@ (define-public inspekt3d
(("2\\.2") "3.0 2.2"))))) (("2\\.2") "3.0 2.2")))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(add-after 'unpack 'patch-libfive-guile-location #~(modify-phases %standard-phases
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack 'patch-libfive-guile-location
(substitute* "inspekt3d/library.scm" (lambda _
(("\"libfive-guile") (substitute* "inspekt3d/library.scm"
(string-append "\"" (("\\(load-extension \"libfive-guile\" \"scm_init_libfive_modules\"\\)") "#t")
(assoc-ref inputs "libfive") (("\"libfive-guile")
"/lib/libfive-guile"))) (string-append "\""
#t))))) #$(this-package-input "libfive")
"/lib/libfive-stdlib"))))))))
(native-inputs (native-inputs
(list autoconf automake pkg-config)) (list autoconf automake pkg-config))
(inputs (inputs