aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/ruby.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-09-16 11:05:50 +0200
committerRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-11-02 14:47:00 +0100
commit2417fce3afa1f1908462c2176dedd810cb639085 (patch)
tree35901c0eb38cfb587047c2b9c756a92afe4347ad /gnu/packages/ruby.scm
parentf13636f29179e0d7eb9b2e0416f771848a9d2e1e (diff)
downloadpatches-2417fce3afa1f1908462c2176dedd810cb639085.tar
patches-2417fce3afa1f1908462c2176dedd810cb639085.tar.gz
gnu: Add ruby-ffi.
* gnu/packages/ruby.scm (ruby-ffi): New variable.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r--gnu/packages/ruby.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 92e726de64..fcb800a788 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -774,6 +774,34 @@ Ruby Gems.")
(home-page "https://github.com/postmodern/rubygems-tasks")
(license license:expat)))
+(define-public ruby-ffi
+ (package
+ (name "ruby-ffi")
+ (version "1.9.10")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "ffi" version))
+ (sha256
+ (base32
+ "1m5mprppw0xcrv2mkim5zsk70v089ajzqiq5hpyb0xg96fcyzyxj"))))
+ (build-system ruby-build-system)
+ ;; FIXME: Before running tests the build system attempts to build libffi
+ ;; from sources.
+ (arguments `(#:tests? #f))
+ (native-inputs
+ `(("ruby-rake-compiler" ,ruby-rake-compiler)
+ ("ruby-rspec" ,ruby-rspec)
+ ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
+ (inputs
+ `(("libffi" ,libffi)))
+ (synopsis "Ruby foreign function interface library")
+ (description "Ruby-FFI is a Ruby extension for programmatically loading
+dynamic libraries, binding functions within them, and calling those functions
+from Ruby code. Moreover, a Ruby-FFI extension works without changes on Ruby
+and JRuby.")
+ (home-page "http://wiki.github.com/ffi/ffi")
+ (license license:bsd-3)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")