diff options
author | Danny Milosavljevic <dannym@friendly-machines.com> | 2024-12-21 21:31:19 +0100 |
---|---|---|
committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2024-12-21 21:43:03 +0100 |
commit | 65856d6cec7b8463ca8457cf053a427f4dfba67f (patch) | |
tree | e682c53d8df8b628b73abdc6f2765f76f304a510 | |
parent | d6731b59ba0f053310026debecb9d5e728996644 (diff) | |
download | guix-65856d6cec7b8463ca8457cf053a427f4dfba67f.tar.gz guix-65856d6cec7b8463ca8457cf053a427f4dfba67f.zip |
gnu: Add ruby-prism.
* gnu/packages/ruby.scm (ruby-prism): New variable.
Change-Id: I85b078257e97c5e3e326556a314c0006193a144c
-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 8c8e3e1ab4..bbfa5c1b39 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1805,6 +1805,45 @@ Style Sheets (CSS) rule sets in Ruby.") (home-page "https://github.com/premailer/css_parser") (license license:expat))) +(define-public ruby-prism + (package + (name "ruby-prism") + (version "1.3.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ruby/prism.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "03bs2gbackc3c3k4p979l2p9v215jb1m5h7b44n6yzh18kaimc85")))) + (build-system ruby-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'build + (lambda _ + (setenv "CC" ,(cc-for-target)) + (invoke "rake" "compile"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (setenv "GEM_HOME" (string-append (assoc-ref outputs "out") + "/lib/ruby/vendor_ruby")) + (invoke "rake" "install") + ;; Make build reproducible. + (for-each delete-file + (find-files (string-append (assoc-ref outputs "out") + "/lib/ruby/vendor_ruby") + "gem_make.out$"))))))) + (native-inputs + (list ruby-rake ruby-rake-compiler)) + (synopsis "Parser for Ruby source code") + (description "This package provides a parser for Ruby source code, +written in C.") + (home-page "https://ruby.github.io/prism/") + (license license:expat))) + (define-public ruby-prawn-svg (package (name "ruby-prawn-svg") |