aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-01 16:15:12 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-28 22:22:06 -0400
commit166c88c97f76e0dd7a05a6c0f9fb735df004cecf (patch)
treecaef39441d7f10eabce3baa5ff5123709668b296
parent55f39fa6301aade356adf8cd70afd59a1b034ac5 (diff)
downloadguix-166c88c97f76e0dd7a05a6c0f9fb735df004cecf.tar.gz
guix-166c88c97f76e0dd7a05a6c0f9fb735df004cecf.zip
gnu: Add ruby-clamp.
* gnu/packages/ruby.scm (ruby-clamp): New variable.
-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 2fdac01841..b55e1c7b7a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2088,6 +2088,34 @@ code in Merb and Rails.")
(home-page "https://github.com/jnunemaker/crack")
(license license:expat)))
+(define-public ruby-clamp
+ (package
+ (name "ruby-clamp")
+ (version "1.3.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "clamp" version))
+ (sha256
+ (base32
+ "08m0syh06bhx8dqn560ivjg96l5cs5s3l9jh2szsnlcdcyl9jsjg"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'do-not-require-rubocop
+ (lambda _
+ (substitute* "Rakefile"
+ (("require \"rubocop/rake_task\"")
+ "")
+ (("RuboCop::RakeTask.new")
+ "")))))))
+ (native-inputs (list ruby-rspec))
+ (synopsis "Command-line parsing library for Ruby")
+ (description "Clamp provides an object-model for command-line utilities.
+It handles parsing of command-line options, and generation of usage help.")
+ (home-page "https://github.com/mdub/clamp")
+ (license license:expat)))
+
(define-public ruby-cliver
(package
(name "ruby-cliver")