diff options
Diffstat (limited to 'gnu/packages/ruby.scm')
| -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 8c8e3e1ab49..bbfa5c1b39c 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm | |||
| @@ -1805,6 +1805,45 @@ Style Sheets (CSS) rule sets in Ruby.") | |||
| 1805 | (home-page "https://github.com/premailer/css_parser") | 1805 | (home-page "https://github.com/premailer/css_parser") |
| 1806 | (license license:expat))) | 1806 | (license license:expat))) |
| 1807 | 1807 | ||
| 1808 | (define-public ruby-prism | ||
| 1809 | (package | ||
| 1810 | (name "ruby-prism") | ||
| 1811 | (version "1.3.0") | ||
| 1812 | (source (origin | ||
| 1813 | (method git-fetch) | ||
| 1814 | (uri (git-reference | ||
| 1815 | (url "https://github.com/ruby/prism.git") | ||
| 1816 | (commit (string-append "v" version)))) | ||
| 1817 | (file-name (git-file-name name version)) | ||
| 1818 | (sha256 | ||
| 1819 | (base32 | ||
| 1820 | "03bs2gbackc3c3k4p979l2p9v215jb1m5h7b44n6yzh18kaimc85")))) | ||
| 1821 | (build-system ruby-build-system) | ||
| 1822 | (arguments | ||
| 1823 | `(#:phases | ||
| 1824 | (modify-phases %standard-phases | ||
| 1825 | (replace 'build | ||
| 1826 | (lambda _ | ||
| 1827 | (setenv "CC" ,(cc-for-target)) | ||
| 1828 | (invoke "rake" "compile"))) | ||
| 1829 | (replace 'install | ||
| 1830 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 1831 | (setenv "GEM_HOME" (string-append (assoc-ref outputs "out") | ||
| 1832 | "/lib/ruby/vendor_ruby")) | ||
| 1833 | (invoke "rake" "install") | ||
| 1834 | ;; Make build reproducible. | ||
| 1835 | (for-each delete-file | ||
| 1836 | (find-files (string-append (assoc-ref outputs "out") | ||
| 1837 | "/lib/ruby/vendor_ruby") | ||
| 1838 | "gem_make.out$"))))))) | ||
| 1839 | (native-inputs | ||
| 1840 | (list ruby-rake ruby-rake-compiler)) | ||
| 1841 | (synopsis "Parser for Ruby source code") | ||
| 1842 | (description "This package provides a parser for Ruby source code, | ||
| 1843 | written in C.") | ||
| 1844 | (home-page "https://ruby.github.io/prism/") | ||
| 1845 | (license license:expat))) | ||
| 1846 | |||
| 1808 | (define-public ruby-prawn-svg | 1847 | (define-public ruby-prawn-svg |
| 1809 | (package | 1848 | (package |
| 1810 | (name "ruby-prawn-svg") | 1849 | (name "ruby-prawn-svg") |
