summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-06-27 00:36:29 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-06-27 00:36:29 -0400
commitfc5d1c5aa0f511025e5ee98a916b059f7427b2f5 (patch)
treea88b45d125032d54366f950392692b36abc11ace /gnu/packages
parentd7bd7016e87f6690e6b7e3f79bf0c147df7631ac (diff)
gnu: Add ruby-ffi-rzmq-core.
* gnu/packages/ruby.scm (ruby-ffi-rzmq-core): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/ruby.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index ec5a0fec09..1a5cfb45b9 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6052,6 +6052,43 @@ figure out how many times to run the code to get interesting data.")
(home-page "https://github.com/evanphx/benchmark-ips")
(license license:expat)))
+(define-public ruby-ffi-rzmq-core
+ (package
+ (name "ruby-ffi-rzmq-core")
+ (version "1.0.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "ffi-rzmq-core" version))
+ (sha256
+ (base32
+ "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-libzmq-search-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((zeromq (assoc-ref inputs "zeromq")))
+ (substitute* "lib/ffi-rzmq-core/libzmq.rb"
+ (("/usr/local/lib")
+ (string-append zeromq "/lib")))
+ #t)))
+ (replace 'check
+ (lambda _
+ (invoke "rspec"))))))
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec)))
+ (inputs
+ `(("zeromq" ,zeromq)))
+ (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
+ (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
+ (description "This library only provides the FFI wrapper for the ZeroMQ
+networking library. It can be used to implement a Ruby API for the ZeroMQ
+library.")
+ (home-page "https://github.com/chuckremes/ffi-rzmq-core")
+ (license license:expat)))
+
(define-public ruby-gherkin
(package
(name "ruby-gherkin")