gnu: Add ruby-bootsnap.
* gnu/packages/rails.scm (ruby-bootsnap): New variable.
This commit is contained in:
parent
1e36d75d5a
commit
52c1d3f9ce
@ -733,6 +733,45 @@ pattern. Including support for multipart email and attachments.")
|
|||||||
(home-page "https://rubyonrails.org/")
|
(home-page "https://rubyonrails.org/")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public ruby-bootsnap
|
||||||
|
(package
|
||||||
|
(name "ruby-bootsnap")
|
||||||
|
(version "1.16.0")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch) ;for tests
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/Shopify/bootsnap")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1gaih5v4jjndrkn0crrr5mxnwc3cd0f3i955n62ghk29zabvd7wf"))))
|
||||||
|
(build-system ruby-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:test-target "default"
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'extract-gemspec 'relax-requirements
|
||||||
|
(lambda _
|
||||||
|
(substitute* "Gemfile"
|
||||||
|
;; Rubocop and byebug are not actually needed to run the
|
||||||
|
;; tests.
|
||||||
|
((".*rubocop.*") "")
|
||||||
|
((".*byebug.*") ""))))
|
||||||
|
(replace 'replace-git-ls-files
|
||||||
|
(lambda _
|
||||||
|
(substitute* "bootsnap.gemspec"
|
||||||
|
(("`git ls-files -z ext lib`")
|
||||||
|
"`find ext lib -type f -print0 | sort -z`")))))))
|
||||||
|
(native-inputs (list ruby-mocha ruby-rake-compiler))
|
||||||
|
(propagated-inputs (list ruby-msgpack))
|
||||||
|
(synopsis "Accelerator for large Ruby/Rails application")
|
||||||
|
(description "Bootsnap is a library that plugs into Ruby, with optional
|
||||||
|
support for YAML, to optimize and cache expensive computations.")
|
||||||
|
(home-page "https://github.com/Shopify/bootsnap")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public ruby-marcel
|
(define-public ruby-marcel
|
||||||
(package
|
(package
|
||||||
(name "ruby-marcel")
|
(name "ruby-marcel")
|
||||||
|
Loading…
Reference in New Issue
Block a user