summaryrefslogtreecommitdiff
path: root/gnu/packages/ruby.scm
diff options
context:
space:
mode:
authorpjotrp <pjotr.public01@thebird.nl>2015-06-13 13:22:10 +0200
committerDavid Thompson <davet@gnu.org>2015-06-19 08:27:27 -0400
commit9942e8030dac70a313cf8eeabf3c8e250119d227 (patch)
treef3d69eb0ee820e9d08752111aa4095dfbabe18a2 /gnu/packages/ruby.scm
parent727636aaf88db0de3c918dcd84c907e6407f8f50 (diff)
downloadpatches-9942e8030dac70a313cf8eeabf3c8e250119d227.tar
patches-9942e8030dac70a313cf8eeabf3c8e250119d227.tar.gz
gnu: Add ruby 2.1.6
* gnu/packages/ruby.scm (ruby-2.1): New variable.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r--gnu/packages/ruby.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index ff30c4988a..af87cf551f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -88,6 +88,39 @@ a focus on simplicity and productivity.")
(home-page "https://ruby-lang.org")
(license license:ruby)))
+(define-public ruby-2.1
+ (package (inherit ruby)
+ (version "2.1.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
+ (version-major+minor version)
+ "/ruby-" version ".tar.bz2"))
+ (sha256
+ (base32
+ "1sbcmbhadcxk0509svwxbm2vvgmpf3xjxr1397bgp9x46nz36lkv"))))
+ (arguments
+ `(#:test-target "test"
+ #:parallel-tests? #f
+ #:phases
+ (alist-cons-before
+ 'configure 'replace-bin-sh
+ (lambda _
+ (substitute* '("Makefile.in"
+ "ext/pty/pty.c"
+ "io.c"
+ "lib/mkmf.rb"
+ "process.c")
+ (("/bin/sh") (which "sh"))))
+ %standard-phases)))
+ (native-search-paths
+ (list (search-path-specification
+ (variable "GEM_PATH")
+ (files (list (string-append "lib/ruby/gems/"
+ (version-major+minor version)
+ ".0"))))))))
+
(define-public ruby-1.8
(package (inherit ruby)
(version "1.8.7-p374")