me
/
guix
Archived
1
0
Fork 0

gnu: flatbuffers: Update to 2.0.0.

* gnu/packages/serialization.scm (flatbuffers): Update to 2.0.0.
[source]: Fetch sources from git.
[arguments]: Make git checkout writable; Enable building shared library.
Ricardo Wurmus 2021-08-04 10:56:00 +02:00
parent eaf2111dbc
commit aaae45b1f4
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 14 additions and 8 deletions

View File

@ -584,22 +584,28 @@ to generate and parse. The two primary functions are @code{cbor.loads} and
(define-public flatbuffers (define-public flatbuffers
(package (package
(name "flatbuffers") (name "flatbuffers")
(version "1.10.0") (version "2.0.0")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (string-append "https://github.com/google/flatbuffers/archive/v" (uri (git-reference
version ".tar.gz")) (url "https://github.com/google/flatbuffers")
(file-name (string-append name "-" version ".tar.gz")) (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0z4swldxs0s31hnkqdhsbfmc8vx3p7zsvmqaw4l31r2iikdy651p")))) "1zbf6bdpps8369r1ql00irxrp58jnalycc8jcapb8iqg654vlfz8"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
'(#:build-type "Release" '(#:build-type "Release"
#:configure-flags #:configure-flags
(list (string-append "-DCMAKE_INSTALL_LIBDIR=" (list "-DFLATBUFFERS_BUILD_SHAREDLIB=ON"
(assoc-ref %outputs "out") "/lib")))) (string-append "-DCMAKE_INSTALL_LIBDIR="
(assoc-ref %outputs "out") "/lib"))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'make-writable
(lambda _ (for-each make-file-writable (find-files ".")))))))
(home-page "https://google.github.io/flatbuffers/") (home-page "https://google.github.io/flatbuffers/")
(synopsis "Memory-efficient serialization library") (synopsis "Memory-efficient serialization library")
(description "FlatBuffers is a cross-platform serialization library for C++, (description "FlatBuffers is a cross-platform serialization library for C++,