mirror of
git://git.savannah.gnu.org/guix.git
synced 2024-12-29 11:46:06 +01:00
gnu: Add ruby-ruby-memcheck.
* gnu/packages/ruby.scm (ruby-ruby-memcheck): New variable.
This commit is contained in:
parent
4319f564a7
commit
97096c268c
1 changed files with 41 additions and 0 deletions
|
@ -82,6 +82,7 @@
|
||||||
#:use-module (gnu packages rsync)
|
#:use-module (gnu packages rsync)
|
||||||
#:use-module (gnu packages sqlite)
|
#:use-module (gnu packages sqlite)
|
||||||
#:use-module (gnu packages tls)
|
#:use-module (gnu packages tls)
|
||||||
|
#:use-module (gnu packages valgrind)
|
||||||
#:use-module (gnu packages version-control)
|
#:use-module (gnu packages version-control)
|
||||||
#:use-module (gnu packages web-browsers)
|
#:use-module (gnu packages web-browsers)
|
||||||
#:use-module (gnu packages serialization)
|
#:use-module (gnu packages serialization)
|
||||||
|
@ -8268,6 +8269,46 @@ Profiling multiple threads simultaneously is supported.
|
||||||
(home-page "https://github.com/ruby-prof/ruby-prof")
|
(home-page "https://github.com/ruby-prof/ruby-prof")
|
||||||
(license license:bsd-2)))
|
(license license:bsd-2)))
|
||||||
|
|
||||||
|
(define-public ruby-ruby-memcheck
|
||||||
|
(package
|
||||||
|
(name "ruby-ruby-memcheck")
|
||||||
|
(version "1.2.0")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/Shopify/ruby_memcheck")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1sx8nhx7w4z5s5vj6kq6caqsfznswqzwca372j82cd80hf9iznra"))))
|
||||||
|
(build-system ruby-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-valgrind-path
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* "lib/ruby_memcheck/configuration.rb"
|
||||||
|
(("DEFAULT_VALGRIND = \"valgrind\"")
|
||||||
|
(format #f "DEFAULT_VALGRIND = ~s"
|
||||||
|
(search-input-file inputs "bin/valgrind"))))))
|
||||||
|
(add-before 'replace-git-ls-files 'standardize-git-ls-files
|
||||||
|
(lambda _
|
||||||
|
(substitute* "ruby_memcheck.gemspec"
|
||||||
|
(("%x\\(git ls-files -z)")
|
||||||
|
"`git ls-files -z`")))))))
|
||||||
|
(native-inputs (list ruby-rake-compiler ruby-rspec))
|
||||||
|
(inputs (list valgrind/interactive))
|
||||||
|
(propagated-inputs (list ruby-nokogiri))
|
||||||
|
(synopsis "Valgrind memcheck tool for Ruby")
|
||||||
|
(description "The @code{ruby_memcheck} gem provides a sane way to use
|
||||||
|
Valgrind's memcheck on your native extension gem, that filters out all the
|
||||||
|
false positives caused by Ruby not freeing all of the memory it allocates
|
||||||
|
during shutdown.")
|
||||||
|
(home-page "https://github.com/Shopify/ruby_memcheck")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public ruby-memory-profiler
|
(define-public ruby-memory-profiler
|
||||||
(package
|
(package
|
||||||
(name "ruby-memory-profiler")
|
(name "ruby-memory-profiler")
|
||||||
|
|
Loading…
Reference in a new issue