diff options
author | Christopher Baines <mail@cbaines.net> | 2019-01-28 14:51:47 +0000 |
---|---|---|
committer | Christopher Baines <christopher.baines@digital.cabinet-office.gov.uk> | 2019-01-29 22:56:12 +0000 |
commit | ddddef2720b32e1d542ae8b31e4aa2e6e95ad411 (patch) | |
tree | 208d089f657707c563c3b2d49fabe15298137222 | |
parent | 24eeb874facba4dca63863b64abfae5252269b32 (diff) | |
download | gnu-guix-ddddef2720b32e1d542ae8b31e4aa2e6e95ad411.tar gnu-guix-ddddef2720b32e1d542ae8b31e4aa2e6e95ad411.tar.gz |
gnu: Add ruby-mysql2.
Required for ruby-parallel.
* gnu/packages/ruby.scm (ruby-mysql2): New variable.
-rw-r--r-- | gnu/packages/ruby.scm | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index ea4cfba5cc..bf4a2ce559 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1938,6 +1938,51 @@ specs for Ruby implementations in ruby/spec.") (home-page "http://rubyspec.org") (license license:expat))) +(define-public ruby-mysql2 + (package + (name "ruby-mysql2") + (version "0.5.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/brianmario/mysql2.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv")))) + (build-system ruby-build-system) + (arguments + '(;; TODO: Tests require a running MySQL/MariaDB service + #:tests? #f + #:phases + (modify-phases %standard-phases + (replace 'replace-git-ls-files + (lambda _ + (substitute* "mysql2.gemspec" + (("git ls-files") "echo")))) + (add-before 'build 'compile + (lambda _ + (invoke "rake" "compile"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "rspec" "-Ilib" "-Iext")) + #t))))) + (inputs + `(("mariadb" ,mariadb) + ("zlib" ,zlib))) + (native-inputs + `(("ruby-rspec" ,ruby-rspec) + ("ruby-rake-compiler" ,ruby-rake-compiler))) + (synopsis "MySQL library for Ruby, binding to libmysql") + (description + "This package provides a simple, fast MySQL library for Ruby, binding to +libmysql.") + (home-page "https://github.com/brianmario/mysql2") + (license license:expat))) + (define-public ruby-blankslate (package (name "ruby-blankslate") |