aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-18 00:07:38 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-28 22:22:50 -0400
commit1ca89c7f520995f98bf0f5ce744ab969985cf42c (patch)
tree4157f73884c13ecb7e5aeff603c09c46d8618c48
parent958f1ff68da05205ab54227a55b6b636889379b3 (diff)
downloadguix-1ca89c7f520995f98bf0f5ce744ab969985cf42c.tar
guix-1ca89c7f520995f98bf0f5ce744ab969985cf42c.tar.gz
gnu: Add ruby-liquid-c.
* gnu/packages/ruby.scm (ruby-liquid-c): New variable.
-rw-r--r--gnu/packages/ruby.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index f759def4d9..99a1975674 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13524,6 +13524,40 @@ liquid ruby gem in C that makes it operate about three times faster.")
(home-page "https://github.com/shopify/liquid-c")
(license license:expat)))
+(define-public ruby-liquid-c
+ (package/inherit ruby-liquid-c-bootstrap
+ (name "ruby-liquid-c")
+ (arguments
+ (list
+ ;; Only run the unit tests, because the test:integration target fails
+ ;; with "File does not exist: test_helper" (see:
+ ;; https://github.com/Shopify/liquid-c/issues/188).
+ #:test-target "test:unit"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "Gemfile"
+ ;; Do not attempt to fetch a gem from git.
+ (("git_source\\(:github) do \\|repo_name\\|")
+ "if false")
+ ((", github: \"Shopify/liquid\", ref: \"master\"")
+ "")
+ ;; Remove extraneous dependencies.
+ ((".*byebug.*") "")
+ ((".*rubocop.*") "")
+ ;; Relax spy version specification.
+ (("gem \"spy\", \"0.4.1\"")
+ "gem \"spy\", \">= 0.4.1\"")))))))
+ (native-inputs
+ (list ruby-benchmark-ips
+ ruby-rake-compiler
+ ruby-ruby-memcheck
+ ruby-spy
+ ruby-stackprof))
+ (propagated-inputs
+ (list ruby-liquid))))
+
(define-public ruby-localhost
(package
(name "ruby-localhost")