[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
94/229: gnu: Add ruby-sorbet-runtime.
From: |
guix-commits |
Subject: |
94/229: gnu: Add ruby-sorbet-runtime. |
Date: |
Tue, 28 Mar 2023 22:29:07 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 7405e0c83f8f4eee5c4c40e809a40f2e4407a38c
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Jan 8 02:07:40 2023 -0500
gnu: Add ruby-sorbet-runtime.
* gnu/packages/ruby.scm (ruby-sorbet-runtime): New variable.
(sorbet-version): New variable.
(sorbet-monorepo): New variable.
(make-sorbet-gem-source): New procedure.
---
gnu/packages/ruby.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index c3edbfa988..ead64b98ea 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -89,6 +89,7 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix gexp)
+ #:use-module (guix modules)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (gnu packages xml)
@@ -12337,6 +12338,56 @@ can be used to build formatters, linters, language
servers, and more.")
(home-page "https://github.com/ruby-syntax-tree/syntax_tree")
(license license:expat)))
+(define sorbet-version "0.5.10610.20230106174520-1fa668010")
+
+(define sorbet-monorepo
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sorbet/sorbet")
+ (commit sorbet-version)))
+ (file-name (string-append "sorbet-" sorbet-version "-checkout"))
+ (sha256
+ (base32
+ "0f21dl06alxwn6xgdxyrkd58plmmsv04z2bcls9ld4cfzsrs5537"))))
+
+(define (make-sorbet-gem-source gem)
+ "Return the source of GEM, a sub-directory."
+ (computed-file
+ (string-append "ruby-sorbet-" gem "-" sorbet-version "-checkout")
+ (with-imported-modules (source-module-closure '((guix build utils)))
+ #~(begin
+ (use-modules (guix build utils))
+ (copy-recursively (string-append #$sorbet-monorepo
+ "/gems/sorbet-" #$gem)
+ #$output)))))
+
+(define-public ruby-sorbet-runtime
+ (package
+ (name "ruby-sorbet-runtime")
+ (version sorbet-version)
+ (source (make-sorbet-gem-source "runtime"))
+ (build-system ruby-build-system)
+ ;; 25 out of 841 tests currently fail, seemingly due to invalid
+ ;; assumptions about file names in the build environment (see:
+ ;; https://github.com/sorbet/sorbet/issues/6650).
+ (arguments (list #:tests? #f))
+ (native-inputs
+ (list ruby-minitest
+ ruby-mocha
+ ruby-rubocop
+ ruby-rubocop-performance
+ ruby-concurrent-ruby
+ ruby-pry
+ ruby-pry-byebug
+ ruby-parser
+ ruby-subprocess))
+ (synopsis "Runtime type checking component for Sorbet")
+ (description "Sorbet's runtime type checking component. Sorbet is a
+powerful type checker for Ruby.")
+ (home-page "https://sorbet.org")
+ (license license:asl2.0)))
+
(define-public ruby-mustache
(package
(name "ruby-mustache")
- 133/229: gnu: ruby-puma: Update to 6.1.1 and enable test suite., (continued)
- 133/229: gnu: ruby-puma: Update to 6.1.1 and enable test suite., guix-commits, 2023/03/28
- 74/229: gnu: Add ruby-minitest-stub-const., guix-commits, 2023/03/28
- 81/229: gnu: ruby-rack-test: Honor #:tests? argument., guix-commits, 2023/03/28
- 83/229: gnu: ruby-webrick: Update to 1.8.1., guix-commits, 2023/03/28
- 84/229: gnu: Add ruby-rackup., guix-commits, 2023/03/28
- 86/229: gnu: Add ruby-prettier-print., guix-commits, 2023/03/28
- 88/229: gnu: Add ruby-subprocess., guix-commits, 2023/03/28
- 89/229: gnu: Add ruby-rake-compiler-dock., guix-commits, 2023/03/28
- 91/229: gnu: ruby-concurrent: Replace with ruby-concurrent-ruby., guix-commits, 2023/03/28
- 92/229: gnu: Add ruby-concurrent-ruby-ext., guix-commits, 2023/03/28
- 94/229: gnu: Add ruby-sorbet-runtime.,
guix-commits <=
- 95/229: gnu: Add ruby-rdiscount., guix-commits, 2023/03/28
- 98/229: gnu: ruby-faraday: Update to 2.7.4 and enable test suite., guix-commits, 2023/03/28
- 100/229: gnu: ruby-faraday: Propagate ruby-faraday-net-http., guix-commits, 2023/03/28
- 104/229: gnu: ruby-byebug: Do not depend on ruby-chandler., guix-commits, 2023/03/28
- 106/229: gnu: Add ruby-multipart-parser., guix-commits, 2023/03/28
- 110/229: gnu: ruby-faraday-middleware: Add a deprecation comment and re-indent., guix-commits, 2023/03/28
- 121/229: gnu: Add ruby-io-console., guix-commits, 2023/03/28
- 125/229: gnu: Add ruby-rspec-debug., guix-commits, 2023/03/28
- 128/229: gnu: Add ruby-bake-test-external., guix-commits, 2023/03/28
- 129/229: gnu: Add ruby-sus., guix-commits, 2023/03/28