2015-11-09 14:46:56 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2019-04-07 09:53:50 +02:00
|
|
|
|
;;; Copyright © 2015, 2017, 2019 Ricardo Wurmus <rekado@elephly.net>
|
2016-06-21 15:46:15 +02:00
|
|
|
|
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
|
2016-08-17 12:22:03 +02:00
|
|
|
|
;;; Copyright © 2016 David Craven <david@craven.ch>
|
2019-07-15 18:51:17 +02:00
|
|
|
|
;;; Copyright © 2016, 2019 Marius Bakke <mbakke@fastmail.com>
|
2019-01-04 10:21:18 +01:00
|
|
|
|
;;; Copyright © 2016, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
|
2017-04-21 14:05:30 +02:00
|
|
|
|
;;; Copyright © 2017 Corentin Bocquillon <corentin@nybble.fr>
|
2017-06-24 21:03:47 +02:00
|
|
|
|
;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net>
|
2017-07-14 15:22:49 +02:00
|
|
|
|
;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com>
|
Correct name and email address for ng0.
* .mailmap, Makefile.am, doc/guix.de.texi, doc/guix.fr.texi,
doc/guix.texi, etc/completion/fish/guix.fish,
gnu/packages/accessibility.scm, gnu/packages/admin.scm,
gnu/packages/audio.scm, gnu/packages/autotools.scm,
gnu/packages/cdrom.scm, gnu/packages/check.scm,
gnu/packages/cinnamon.scm, gnu/packages/compression.scm,
gnu/packages/crypto.scm, gnu/packages/databases.scm,
gnu/packages/django.scm, gnu/packages/dns.scm, gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm,
gnu/packages/enlightenment.scm, gnu/packages/erlang.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm,
gnu/packages/forth.scm, gnu/packages/fvwm.scm, gnu/packages/games.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/gtk.scm,
gnu/packages/guile-wm.scm,gnu/packages/guile-xyz.scm,
gnu/packages/haskell-check.scm, gnu/packages/haskell-crypto.scm,
gnu/packages/haskell.scm, gnu/packages/image-viewers.scm,
gnu/packages/image.scm, gnu/packages/irc.scm,
gnu/packages/language.scm, gnu/packages/libcanberra.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lolcode.scm,
gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/mail.scm,
gnu/packages/markup.scm, gnu/packages/mate.scm, gnu/packages/maths.scm,
gnu/packages/mc.scm, gnu/packages/messaging.scm, gnu/packages/music.scm,
gnu/packages/ncurses.scm, gnu/packages/networking.scm,
gnu/packages/nickle.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl-check.scm, gnu/packages/perl.scm,
gnu/packages/python-compression.scm, gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm, gnu/packages/python-xyz.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/ruby.scm,
gnu/packages/rust.scm, gnu/packages/scheme.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/ssh.scm, gnu/packages/suckless.scm, gnu/packages/tbb.scm,
gnu/packages/telephony.scm, gnu/packages/text-editors.scm,
gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm,
gnu/packages/tor.scm, gnu/packages/version-control.scm,
gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/web.scm,
gnu/packages/wm.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/services/certbot.scm,
gnu/services/desktop.scm, gnu/services/version-control.scm,
gnu/services/web.scm, guix/import/hackage.scm, guix/licenses.scm:
Correct name and email address for ng0.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2019-03-14 10:33:38 +01:00
|
|
|
|
;;; Copyright © 2017 ng0 <ng0@n0.is>
|
2018-03-17 12:23:59 +01:00
|
|
|
|
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-02-17 21:44:04 +01:00
|
|
|
|
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
|
2015-11-09 14:46:56 +01:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages serialization)
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2019-04-07 09:53:50 +02:00
|
|
|
|
#:use-module (guix git-download)
|
2017-01-24 15:40:11 +01:00
|
|
|
|
#:use-module (guix utils)
|
2015-11-09 14:46:56 +01:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2016-06-21 15:46:15 +02:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2018-02-17 23:29:53 +01:00
|
|
|
|
#:use-module (guix build-system python)
|
2015-11-09 14:46:56 +01:00
|
|
|
|
#:use-module (gnu packages)
|
2016-06-21 15:46:15 +02:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2016-08-17 12:22:03 +02:00
|
|
|
|
#:use-module (gnu packages boost)
|
2016-06-21 15:46:15 +02:00
|
|
|
|
#:use-module (gnu packages check)
|
|
|
|
|
#:use-module (gnu packages compression)
|
2018-02-21 18:25:17 +01:00
|
|
|
|
#:use-module (gnu packages databases)
|
2016-06-21 15:46:15 +02:00
|
|
|
|
#:use-module (gnu packages documentation)
|
2019-09-18 21:44:15 +02:00
|
|
|
|
#:use-module (gnu packages gcc)
|
2017-01-24 15:40:11 +01:00
|
|
|
|
#:use-module (gnu packages lua)
|
2016-08-18 21:28:15 +02:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2017-04-21 14:05:30 +02:00
|
|
|
|
#:use-module (gnu packages python)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 14:21:30 +01:00
|
|
|
|
#:use-module (gnu packages python-xyz)
|
2019-01-07 15:21:09 +01:00
|
|
|
|
#:use-module (gnu packages perl))
|
2015-11-09 14:46:56 +01:00
|
|
|
|
|
|
|
|
|
(define-public cereal
|
|
|
|
|
(package
|
|
|
|
|
(name "cereal")
|
2016-10-15 20:29:08 +02:00
|
|
|
|
(version "1.2.1")
|
2015-11-09 14:46:56 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/USCiLab/cereal/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-15 20:29:08 +02:00
|
|
|
|
"0kj32h3j2128anig0g9gzw82kfyd5xqfkwq6vdyv900jx8i1qckx"))))
|
2015-11-09 14:46:56 +01:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; The only included tests are portability tests requiring
|
|
|
|
|
;; cross-compilation and boost. Since we are building cereal on more
|
|
|
|
|
;; platforms anyway, there is no compelling reason to build the tests.
|
|
|
|
|
#:tests? #f
|
|
|
|
|
#:out-of-source? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "doc/doxygen.in"
|
|
|
|
|
(("@CMAKE_CURRENT_SOURCE_DIR@") "."))
|
2018-03-11 20:14:47 +01:00
|
|
|
|
(invoke "doxygen" "doc/doxygen.in")
|
|
|
|
|
#t))
|
2015-11-09 14:46:56 +01:00
|
|
|
|
;; There is no "install" target, so we have to provide our own
|
|
|
|
|
;; "install" phase.
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(doc (string-append out "/share/cereal/docs"))
|
|
|
|
|
(include (string-append out "/include/cereal")))
|
|
|
|
|
(mkdir-p doc)
|
|
|
|
|
(mkdir-p include)
|
|
|
|
|
(copy-recursively "include/cereal" include)
|
|
|
|
|
(copy-recursively "doc/html" doc))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("doxygen" ,doxygen)))
|
|
|
|
|
(home-page "http://uscilab.github.io/cereal/")
|
|
|
|
|
(synopsis "C++11 library for serialization")
|
|
|
|
|
(description
|
|
|
|
|
"Cereal is a header-only C++11 serialization library. Cereal takes
|
|
|
|
|
arbitrary data types and reversibly turns them into different representations,
|
|
|
|
|
such as compact binary encodings, XML, or JSON.")
|
|
|
|
|
(license license:bsd-3)))
|
2016-06-21 15:46:15 +02:00
|
|
|
|
|
|
|
|
|
(define-public msgpack
|
|
|
|
|
(package
|
|
|
|
|
(name "msgpack")
|
2019-07-15 18:51:17 +02:00
|
|
|
|
(version "3.2.0")
|
2016-06-21 15:46:15 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append
|
|
|
|
|
"https://github.com/msgpack/msgpack-c/releases/download/"
|
|
|
|
|
"cpp-" version "/msgpack-" version ".tar.gz"))
|
|
|
|
|
(snippet
|
|
|
|
|
'(let ((p (open-file "msgpack.pc.in" "a")))
|
gnu: All snippets report errors using exceptions, else return #t.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm,
gnu/packages/bioinformatics.scm, gnu/packages/cdrom.scm,
gnu/packages/chez.scm, gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/cross-base.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm,
gnu/packages/databases.scm, gnu/packages/dns.scm, gnu/packages/emacs.scm,
gnu/packages/emulators.scm, gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm, gnu/packages/fpga.scm,
gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/geo.scm, gnu/packages/ghostscript.scm,
gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm, gnu/packages/graphics.scm, gnu/packages/gtk.scm,
gnu/packages/guile.scm, gnu/packages/irc.scm, gnu/packages/java.scm,
gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/lxde.scm, gnu/packages/machine-learning.scm,
gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/messaging.scm,
gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/music.scm,
gnu/packages/netpbm.scm, gnu/packages/networking.scm, gnu/packages/node.scm,
gnu/packages/nvi.scm, gnu/packages/ocaml.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/php.scm, gnu/packages/plotutils.scm,
gnu/packages/pretty-print.scm, gnu/packages/profiling.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/robotics.scm,
gnu/packages/sawfish.scm, gnu/packages/scanner.scm, gnu/packages/scheme.scm,
gnu/packages/scribus.scm, gnu/packages/sdl.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/slang.scm, gnu/packages/smalltalk.scm, gnu/packages/ssh.scm,
gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/tbb.scm,
gnu/packages/terminals.scm, gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm, gnu/packages/textutils.scm,
gnu/packages/tls.scm, gnu/packages/unrtf.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm:
In all snippets, report errors using exceptions, or else return #t.
2018-03-16 12:47:34 +01:00
|
|
|
|
(display
|
|
|
|
|
(string-append "Requires: " "zlib" "\n") p)
|
|
|
|
|
(close-output-port p)
|
|
|
|
|
#t))
|
2016-06-21 15:46:15 +02:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-07-15 18:51:17 +02:00
|
|
|
|
"1zhsap7d9zqdm9h1qnpaw78v1sh3rx2if7gk4dszs5m3cg1jiapv"))))
|
|
|
|
|
(build-system cmake-build-system)
|
2016-06-21 15:46:15 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("googletest" ,googletest)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("zlib" ,zlib))) ;; Msgpack installs two headers (zbuffer.h,
|
|
|
|
|
;; zbuffer.hpp) which #include <zlib.h>. However, 'guix gc --references'
|
|
|
|
|
;; does not detect a store reference to zlib since these headers are not
|
|
|
|
|
;; compiled.
|
2018-03-11 20:15:57 +01:00
|
|
|
|
(home-page "https://www.msgpack.org")
|
2016-06-21 15:46:15 +02:00
|
|
|
|
(synopsis "Binary serialization library")
|
|
|
|
|
(description "Msgpack is a library for C/C++ that implements binary
|
|
|
|
|
serialization.")
|
|
|
|
|
(license license:boost1.0)))
|
2016-08-17 12:22:03 +02:00
|
|
|
|
|
2017-01-24 15:40:10 +01:00
|
|
|
|
(define-public libmpack
|
|
|
|
|
(package
|
|
|
|
|
(name "libmpack")
|
2017-05-02 08:40:44 +02:00
|
|
|
|
(version "1.0.5")
|
2017-01-24 15:40:10 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/tarruda/libmpack/"
|
|
|
|
|
"archive/" version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2017-05-02 08:40:44 +02:00
|
|
|
|
(base32
|
|
|
|
|
"0ml922gv8y99lbldqb9ykpjndla0hlprdjyl79yskkhwv2ai7sac"))))
|
2017-01-24 15:40:10 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:test-target "test"
|
|
|
|
|
#:make-flags
|
|
|
|
|
(list "CC=gcc"
|
|
|
|
|
(string-append "PREFIX=" (assoc-ref %outputs "out")))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("libtool" ,libtool)))
|
|
|
|
|
(home-page "https://github.com/tarruda/libmpack")
|
|
|
|
|
(synopsis "Small binary serialization library")
|
|
|
|
|
(description "Libmpack is a small binary serialization and RPC library
|
|
|
|
|
that implements both the msgpack and msgpack-rpc specifications.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2017-01-24 15:40:11 +01:00
|
|
|
|
(define-public lua-libmpack
|
|
|
|
|
(package (inherit libmpack)
|
|
|
|
|
(name "lua-libmpack")
|
2019-07-15 18:45:36 +02:00
|
|
|
|
(version "1.0.8")
|
2017-05-04 17:06:53 +02:00
|
|
|
|
(source (origin
|
2019-07-15 18:44:01 +02:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/libmpack/libmpack-lua")
|
2019-07-15 18:45:36 +02:00
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2017-05-04 17:06:53 +02:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-07-15 18:45:36 +02:00
|
|
|
|
"1ijvzgq5hvib03w5rghv31wi7byamwg7qdx5pawvhvnflaii8ivw"))))
|
2017-01-24 15:40:11 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; FIXME: tests require "busted", which is not yet available in Guix.
|
|
|
|
|
#:tests? #f
|
|
|
|
|
#:test-target "test"
|
|
|
|
|
#:make-flags
|
|
|
|
|
(let* ((lua-version ,(package-version lua))
|
|
|
|
|
(lua-major+minor ,(version-major+minor (package-version lua))))
|
|
|
|
|
(list "CC=gcc"
|
2017-05-04 17:06:53 +02:00
|
|
|
|
"FETCH=echo" ; don't fetch anything from the web
|
|
|
|
|
"UNTGZ=echo" ; and don't try to unpack it
|
2017-01-24 15:40:11 +01:00
|
|
|
|
"USE_SYSTEM_LUA=yes"
|
2017-05-04 17:06:53 +02:00
|
|
|
|
(string-append "MPACK_LUA_VERSION=" lua-version)
|
|
|
|
|
(string-append "MPACK_LUA_VERSION_NOPATCH=" lua-major+minor)
|
2017-01-24 15:40:11 +01:00
|
|
|
|
(string-append "PREFIX="
|
|
|
|
|
(assoc-ref %outputs "out"))
|
|
|
|
|
(string-append "LUA_CMOD_INSTALLDIR="
|
|
|
|
|
(assoc-ref %outputs "out")
|
2017-05-04 17:06:53 +02:00
|
|
|
|
"/lib/lua/" lua-major+minor)))
|
2017-01-24 15:40:11 +01:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
2017-05-04 17:06:53 +02:00
|
|
|
|
(add-after 'unpack 'unpack-mpack-sources
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
;; This is broken because mpack-src is not a file, but all
|
|
|
|
|
;; prerequisites are added to the inputs of the gcc invocation.
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("\\$\\(MPACK\\): mpack-src") "$(MPACK): "))
|
|
|
|
|
(mkdir-p "mpack-src")
|
|
|
|
|
(zero? (system* "tar" "-C" "mpack-src"
|
|
|
|
|
"--strip-components=1"
|
|
|
|
|
"-xvf" (assoc-ref inputs "libmpack"))))))))
|
2017-01-24 15:40:11 +01:00
|
|
|
|
(inputs
|
|
|
|
|
`(("lua" ,lua)))
|
|
|
|
|
(native-inputs
|
2017-05-04 17:06:53 +02:00
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("libmpack" ,(package-source libmpack))))
|
|
|
|
|
(home-page "https://github.com/libmpack/libmpack-lua")
|
2017-01-24 15:40:11 +01:00
|
|
|
|
(synopsis "Lua bindings for the libmpack binary serialization library")))
|
|
|
|
|
|
2018-10-24 14:22:14 +02:00
|
|
|
|
(define-public lua5.1-libmpack
|
|
|
|
|
(package (inherit lua-libmpack)
|
|
|
|
|
(name "lua5.1-libmpack")
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments lua-libmpack)
|
|
|
|
|
((#:make-flags flags)
|
|
|
|
|
`(let* ((lua-version ,(package-version lua-5.1))
|
|
|
|
|
(lua-major+minor ,(version-major+minor (package-version lua-5.1))))
|
|
|
|
|
(list "CC=gcc"
|
|
|
|
|
"USE_SYSTEM_LUA=yes"
|
|
|
|
|
(string-append "MPACK_LUA_VERSION=" lua-version)
|
|
|
|
|
(string-append "MPACK_LUA_VERSION_NOPATCH=" lua-major+minor)
|
|
|
|
|
(string-append "PREFIX="
|
|
|
|
|
(assoc-ref %outputs "out"))
|
|
|
|
|
(string-append "LUA_CMOD_INSTALLDIR="
|
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
|
"/lib/lua/" lua-major+minor))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("lua" ,lua-5.1)))))
|
|
|
|
|
|
2017-01-24 15:40:12 +01:00
|
|
|
|
(define-public lua5.2-libmpack
|
|
|
|
|
(package (inherit lua-libmpack)
|
|
|
|
|
(name "lua5.2-libmpack")
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments lua-libmpack)
|
|
|
|
|
((#:make-flags flags)
|
|
|
|
|
`(let* ((lua-version ,(package-version lua-5.2))
|
|
|
|
|
(lua-major+minor ,(version-major+minor (package-version lua-5.2))))
|
|
|
|
|
(list "CC=gcc"
|
|
|
|
|
"USE_SYSTEM_LUA=yes"
|
2017-05-04 17:09:16 +02:00
|
|
|
|
(string-append "MPACK_LUA_VERSION=" lua-version)
|
|
|
|
|
(string-append "MPACK_LUA_VERSION_NOPATCH=" lua-major+minor)
|
2017-01-24 15:40:12 +01:00
|
|
|
|
(string-append "PREFIX="
|
|
|
|
|
(assoc-ref %outputs "out"))
|
|
|
|
|
(string-append "LUA_CMOD_INSTALLDIR="
|
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
|
"/lib/lua/" lua-major+minor))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("lua" ,lua-5.2)))))
|
|
|
|
|
|
2016-08-17 12:22:03 +02:00
|
|
|
|
(define-public yaml-cpp
|
|
|
|
|
(package
|
|
|
|
|
(name "yaml-cpp")
|
2018-05-03 17:42:01 +02:00
|
|
|
|
(version "0.6.2")
|
2016-08-17 12:22:03 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/jbeder/yaml-cpp/archive/"
|
|
|
|
|
"yaml-cpp-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-05-03 17:42:01 +02:00
|
|
|
|
"01gxn7kc8pzyh4aadjxxzq8cignmbwmm9rfrsmgqfg9w2q75dn74"))))
|
2016-08-17 12:22:03 +02:00
|
|
|
|
(build-system cmake-build-system)
|
2017-08-22 17:09:47 +02:00
|
|
|
|
(arguments
|
2018-12-23 19:39:38 +01:00
|
|
|
|
'(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'dont-install-gtest-libraries
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(with-directory-excursion
|
|
|
|
|
(string-append out "/include")
|
|
|
|
|
(delete-file-recursively "gtest")
|
|
|
|
|
(delete-file-recursively "gmock"))
|
|
|
|
|
(with-directory-excursion
|
|
|
|
|
(string-append out "/lib")
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(delete-file file))
|
|
|
|
|
'("libgmock.so" "libgmock_main.so"
|
|
|
|
|
"libgtest.so" "libgtest_main.so"))))
|
|
|
|
|
#t)))))
|
2016-08-17 12:22:03 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python" ,python)))
|
|
|
|
|
(home-page "https://github.com/jbeder/yaml-cpp")
|
|
|
|
|
(synopsis "YAML parser and emitter in C++")
|
|
|
|
|
(description "YAML parser and emitter in C++ matching the YAML 1.2 spec.")
|
|
|
|
|
(license license:bsd-3)))
|
2016-08-17 12:22:35 +02:00
|
|
|
|
|
|
|
|
|
(define-public jsoncpp
|
|
|
|
|
(package
|
|
|
|
|
(name "jsoncpp")
|
2019-07-22 00:17:20 +02:00
|
|
|
|
(version "1.9.1")
|
2019-07-06 18:48:56 +02:00
|
|
|
|
(home-page "https://github.com/open-source-parsers/jsoncpp")
|
2016-08-17 12:22:35 +02:00
|
|
|
|
(source (origin
|
2019-07-06 18:48:56 +02:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference (url home-page) (commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2016-08-17 12:22:35 +02:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-07-22 00:17:20 +02:00
|
|
|
|
"00g356iv3kcp0gadj7gbyzf9jn9avvx9vxbxc7c2i5nnry8z72wj"))))
|
2016-08-17 12:22:35 +02:00
|
|
|
|
(build-system cmake-build-system)
|
2016-12-02 05:11:21 +01:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags '("-DBUILD_SHARED_LIBS:BOOL=YES")))
|
2016-08-17 12:22:35 +02:00
|
|
|
|
(synopsis "C++ library for interacting with JSON")
|
|
|
|
|
(description "JsonCpp is a C++ library that allows manipulating JSON values,
|
|
|
|
|
including serialization and deserialization to and from strings. It can also
|
|
|
|
|
preserve existing comment in unserialization/serialization steps, making
|
|
|
|
|
it a convenient format to store user input files.")
|
|
|
|
|
(license license:expat)))
|
2016-08-12 14:42:16 +02:00
|
|
|
|
|
2019-04-07 09:53:50 +02:00
|
|
|
|
;; Tensorflow does not build with jsoncpp 1.8.x. It is built with commit
|
|
|
|
|
;; 4356d9bba191e1e16ce7a92073cbf3e63564e973, which lies between version 1.7.2
|
|
|
|
|
;; and 1.7.3.
|
|
|
|
|
(define-public jsoncpp-for-tensorflow
|
|
|
|
|
(package (inherit jsoncpp)
|
|
|
|
|
(name "jsoncpp")
|
|
|
|
|
(version "1.7.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/open-source-parsers/jsoncpp.git")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1180ln8blrb0mwzpcf78k49hlki6di65q77rsvglf83kfcyh4d7z"))))))
|
|
|
|
|
|
2016-08-12 14:42:16 +02:00
|
|
|
|
(define-public capnproto
|
|
|
|
|
(package
|
|
|
|
|
(name "capnproto")
|
2018-11-07 20:41:46 +01:00
|
|
|
|
(version "0.7.0")
|
2016-08-12 14:42:16 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://capnproto.org/capnproto-c++-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-11-07 20:41:46 +01:00
|
|
|
|
"0hfdnhlbskagzgvby8wy6lrxj53zfzpfqimbhga68c0ji2yw1969"))))
|
2016-08-12 14:42:16 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'do-not-require-/etc/services
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Workaround for test that tries to resolve port name from
|
|
|
|
|
;; /etc/services, which is not present in build environment.
|
|
|
|
|
(substitute* "src/kj/async-io-test.c++" ((":http") ":80"))
|
2018-11-07 20:41:46 +01:00
|
|
|
|
#t))
|
|
|
|
|
(add-before 'check 'use-tmp-for-tempory-files
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Use /tmp for tempory files, as the default /var/tmp directory
|
|
|
|
|
;; doesn't exist.
|
|
|
|
|
(substitute* "src/kj/filesystem-disk-test.c++"
|
|
|
|
|
(("VAR\\_TMP \"/var/tmp\"")
|
|
|
|
|
"VAR_TMP \"/tmp\""))
|
2016-08-12 14:42:16 +02:00
|
|
|
|
#t)))))
|
|
|
|
|
(home-page "https://capnproto.org")
|
|
|
|
|
(synopsis "Capability-based RPC and serialization system")
|
|
|
|
|
(description
|
|
|
|
|
"Cap'n Proto is a very fast data interchange format and capability-based
|
|
|
|
|
RPC system. Think JSON, except binary. Or think Protocol Buffers, except faster.")
|
|
|
|
|
(license license:expat)))
|
2017-04-21 14:05:30 +02:00
|
|
|
|
|
|
|
|
|
(define-public libbson
|
|
|
|
|
(package
|
|
|
|
|
(name "libbson")
|
|
|
|
|
(version "1.6.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/mongodb/libbson/releases/"
|
|
|
|
|
"download/" version "/libbson-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1fj4554msq0rrz14snbj908dzqj46gh7jg9w9j0akn2b7q911m5a"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs `(("perl" ,perl)))
|
|
|
|
|
(home-page "http://mongoc.org/libbson/current/index.html")
|
|
|
|
|
(synopsis "C BSON library")
|
|
|
|
|
(description "Libbson can create and parse BSON documents. It can also
|
|
|
|
|
convert JSON documents to BSON and the opposite. BSON stands for Binary JSON,
|
|
|
|
|
it is comparable to protobuf.")
|
|
|
|
|
(license license:asl2.0)))
|
2017-06-24 21:03:47 +02:00
|
|
|
|
|
|
|
|
|
(define-public nlohmann-json-cpp
|
|
|
|
|
(package
|
|
|
|
|
(name "nlohmann-json-cpp")
|
2019-09-18 21:44:15 +02:00
|
|
|
|
(version "3.7.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/nlohmann/json.git")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0v7xih4zjixxxfvkfbs7a8j9qcvpwlsv4vrkbyns3hc7b44nb8ap"))))
|
2017-06-24 21:03:47 +02:00
|
|
|
|
(build-system cmake-build-system)
|
2019-09-18 21:44:15 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
;; Integer overflow tests like those from
|
|
|
|
|
;; <https://github.com/nlohmann/json/issues/1447> fail when building with
|
|
|
|
|
;; gcc@5. Thus, build with a newer GCC.
|
|
|
|
|
`(("gcc" ,gcc-9)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-before 'build 'unset-path-variables
|
|
|
|
|
(lambda _
|
|
|
|
|
(unsetenv "C_INCLUDE_PATH")
|
|
|
|
|
(unsetenv "CPLUS_INCLUDE_PATH")
|
|
|
|
|
#t)))))
|
2017-06-24 21:03:47 +02:00
|
|
|
|
(home-page "https://nlohmann.github.io/json/")
|
|
|
|
|
(synopsis "JSON library for C++")
|
|
|
|
|
(description
|
|
|
|
|
"JSON library for C++ trying to accomplish “Intuitive syntax”,
|
|
|
|
|
“Trivial integration”, and “Serious testing”.
|
|
|
|
|
However, “Memory efficiency” and “Speed” have not been primary goals.")
|
|
|
|
|
(license license:expat)))
|
2017-07-14 15:22:49 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-ruamel.yaml
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ruamel.yaml")
|
2019-01-04 10:21:18 +01:00
|
|
|
|
(version "0.15.83")
|
2017-07-14 15:22:49 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "ruamel.yaml" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-01-04 10:21:18 +01:00
|
|
|
|
"0p4i8ad28cbbbjja8b9274irkhnphhvhap3aym6yb8xfp1d72kpw"))))
|
2017-07-14 15:22:49 +02:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; TODO: Tests require packaging "ruamel.std.pathlib".
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(home-page "https://bitbucket.org/ruamel/yaml")
|
|
|
|
|
(synopsis "YAML 1.2 parser/emitter")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides YAML parser/emitter that supports roundtrip
|
|
|
|
|
preservation of comments, seq/map flow style, and map key order. It
|
|
|
|
|
is a derivative of Kirill Simonov’s PyYAML 3.11. It supports YAML 1.2
|
|
|
|
|
and has round-trip loaders and dumpers. It supports comments. Block
|
|
|
|
|
style and key ordering are kept, so you can diff the source.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-ruamel.yaml
|
|
|
|
|
(package-with-python2 python-ruamel.yaml))
|
2017-10-11 11:47:15 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-cbor
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cbor")
|
|
|
|
|
(version "1.0.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "cbor" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1dmv163cnslyqccrybkxn0c9s1jk1mmafmgxv75iamnz5lk5l8hk"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://bitbucket.org/bodhisnarkva/cbor")
|
|
|
|
|
(synopsis "Implementation of the Concise Binary Object Representation")
|
|
|
|
|
(description
|
|
|
|
|
"Python-cbor provides an implementation of the Concise Binary Object
|
2017-12-24 03:04:25 +01:00
|
|
|
|
Representation (@dfn{CBOR}). CBOR is comparable to JSON, has a superset of
|
|
|
|
|
JSON's ability, but serializes to a binary format which is smaller and faster
|
|
|
|
|
to generate and parse. The two primary functions are @code{cbor.loads} and
|
2017-10-11 11:47:15 +02:00
|
|
|
|
@code{cbor.dumps}.")
|
|
|
|
|
(license license:asl2.0)))
|
2018-02-17 21:44:04 +01:00
|
|
|
|
|
|
|
|
|
(define-public flatbuffers
|
|
|
|
|
(package
|
|
|
|
|
(name "flatbuffers")
|
2018-10-26 16:04:52 +02:00
|
|
|
|
(version "1.10.0")
|
2018-02-17 21:44:04 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/google/flatbuffers/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
2018-12-15 21:23:30 +01:00
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2018-02-17 21:44:04 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-10-26 16:04:52 +02:00
|
|
|
|
"0z4swldxs0s31hnkqdhsbfmc8vx3p7zsvmqaw4l31r2iikdy651p"))))
|
2018-02-17 21:44:04 +01:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
2018-03-17 12:23:59 +01:00
|
|
|
|
'(#:build-type "Release"
|
|
|
|
|
#:configure-flags
|
2018-02-17 21:44:04 +01:00
|
|
|
|
(list (string-append "-DCMAKE_INSTALL_LIBDIR="
|
2018-03-17 12:23:59 +01:00
|
|
|
|
(assoc-ref %outputs "out") "/lib"))))
|
2018-02-17 21:44:04 +01:00
|
|
|
|
(home-page "https://google.github.io/flatbuffers/")
|
|
|
|
|
(synopsis "Memory-efficient serialization library")
|
2018-10-26 16:11:21 +02:00
|
|
|
|
(description "FlatBuffers is a cross-platform serialization library for C++,
|
2018-02-17 21:44:04 +01:00
|
|
|
|
C#, C, Go, Java, JavaScript, PHP, and Python. It was originally created for
|
|
|
|
|
game development and other performance-critical applications.")
|
|
|
|
|
(license license:asl2.0)))
|
2018-02-17 23:29:53 +01:00
|
|
|
|
|
2018-02-21 18:25:17 +01:00
|
|
|
|
(define-public python-feather-format
|
|
|
|
|
(package
|
|
|
|
|
(name "python-feather-format")
|
|
|
|
|
(version "0.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "feather-format" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1adivm5w5ji4qv7hq7942vqlk8l2wgw87bdlsia771z14z3zp857"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pandas" ,python-pandas)
|
|
|
|
|
("python-pyarrow" ,python-pyarrow)))
|
|
|
|
|
(home-page "https://github.com/wesm/feather")
|
|
|
|
|
(synopsis "Python wrapper to the Feather file format")
|
|
|
|
|
(description "This package provides a Python wrapper library to the
|
|
|
|
|
Apache Arrow-based Feather binary columnar serialization data frame format.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-feather-format
|
|
|
|
|
(package-with-python2 python-feather-format))
|