aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-06-30 22:28:19 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-06-30 22:28:19 -0400
commit7aa00628a53648be090b8113a882a94fe3a67637 (patch)
tree1f16a2d08edbd310609483d43e8e159c24abb4a3 /gnu
parent77d098bf8152b41e7c587c19d406946b7ad57566 (diff)
downloadguix-7aa00628a53648be090b8113a882a94fe3a67637.tar.gz
guix-7aa00628a53648be090b8113a882a94fe3a67637.zip
gnu: Add ruby-byebug-11.
* gnu/packages/ruby.scm (ruby-byebug-11): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ruby.scm54
1 files changed, 54 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 5d12e34678..41791db045 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5548,6 +5548,60 @@ other things and it comes with a command line interface.")
(home-page "https://github.com/deivid-rodriguez/byebug")
(license license:bsd-2)))
+;;; TODO: Make it the default byebug in core-updates.
+(define-public ruby-byebug-11
+ (package
+ (inherit ruby-byebug)
+ (name "ruby-byebug")
+ (version "11.1.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/deivid-rodriguez/byebug.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Remove wrappers that try to setup a bundle environment.
+ (with-directory-excursion "bin"
+ (for-each delete-file '("bundle" "rake" "rubocop"))
+ ;; ruby-minitest doesn't come with a launcher, so fix the one
+ ;; provided.
+ (substitute* "minitest"
+ (("load File\\.expand_path\\(\"bundle\".*") "")
+ (("require \"bundler/setup\".*") "")))
+ #t))))
+ (arguments
+ `(#:tests? #t
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'skip-tmp-path-sensitive-test
+ (lambda _
+ (substitute* "test/commands/where_test.rb"
+ (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
+ "unless true\n"))
+ #t))
+ (add-before 'build 'compile
+ (lambda _
+ (invoke "rake" "compile")))
+ (add-before 'check 'set-home
+ (lambda _
+ (setenv "HOME" (getcwd))
+ #t)))))
+ (native-inputs
+ `(("bundler" ,bundler)
+ ("ruby-chandler" ,ruby-chandler)
+ ("ruby-minitest" ,ruby-minitest)
+ ("ruby-pry" ,ruby-pry)
+ ("ruby-rake-compiler" ,ruby-rake-compiler)
+ ("ruby-rubocop" ,ruby-rubocop)
+ ("ruby-yard" ,ruby-yard)))))
+
(define-public ruby-netrc
(package
(name "ruby-netrc")