diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-07-13 12:00:30 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-07-17 23:01:28 -0400 |
commit | 1f183ca0b2eca997dff46a9cf94c302a972eb98c (patch) | |
tree | c5d3541716422d4e63568c110e651f7df9ffe742 | |
parent | f949b60e69601fa9965f517ef2de0b7546331844 (diff) | |
download | guix-1f183ca0b2eca997dff46a9cf94c302a972eb98c.tar.gz guix-1f183ca0b2eca997dff46a9cf94c302a972eb98c.zip |
gnu: Add ruby-treetop.
* gnu/packages/ruby.scm (ruby-treetop): New variable.
-rw-r--r-- | gnu/packages/ruby.scm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 15a26ef91e..2105b97d26 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1310,6 +1310,45 @@ loader for the file type associated with a filename extension, and it augments (home-page "https://github.com/cjheath/polyglot") (license license:expat))) +(define-public ruby-treetop + (package + (name "ruby-treetop") + (version "1.6.10") + (source + (origin + (method git-fetch) ;no test suite in distributed gem + (uri (git-reference + (url "https://github.com/cjheath/treetop.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1dmk94z6ivhrz5hsq68vl5vgydhkz89n394rha1ymddw3rymbfcv")))) + (build-system ruby-build-system) + (arguments + `(#:test-target "spec" + #:phases + (modify-phases %standard-phases + (replace 'replace-git-ls-files + (lambda _ + ;; TODO: Remove after the fix of using 'cut' to better mimic the + ;; git ls-files output is merged in ruby-build-system. + (substitute* "treetop.gemspec" + (("`git ls-files -z`") + "`find . -type f -print0 |sort -z|cut -zc3-`")) + #t))))) + (native-inputs + `(("ruby-activesupport" ,ruby-activesupport) + ("ruby-rr" ,ruby-rr) + ("ruby-rspec" ,ruby-rspec))) + (propagated-inputs + `(("ruby-polyglot" ,ruby-polyglot))) + (synopsis "Ruby-based parsing DSL based on parsing expression grammars") + (description "This package provides a Ruby-based Parsing Expression +Grammar (PEG) parser generator Domain Specific Language (DSL).") + (home-page "https://github.com/cjheath/treetop") + (license license:expat))) + (define-public ruby-ast (package (name "ruby-ast") |