1 Commits

Author SHA1 Message Date
mae
d3f5b24538 internal/pkg/ruby: ruby artifact 2026-05-16 21:53:15 -05:00
2 changed files with 41 additions and 0 deletions

View File

@@ -181,6 +181,7 @@ const (
Rdfind
Readline
Rsync
Ruby
Sed
SPIRVHeaders
SPIRVLLVMTranslator

40
internal/rosa/ruby.go Normal file
View File

@@ -0,0 +1,40 @@
package rosa
import (
"strings"
"hakurei.app/internal/pkg"
)
func (t Toolchain) newRuby() (pkg.Artifact, string) {
const (
version = "4.0.4"
checksum = "QyulcwFhodxYsuYu2MfMgk5nnVpsR5NO2NGsJ3AIMFJQdafn6ZkFBJhVp_XhU6gU"
)
return t.NewPackage("ruby", version, newTar(
"https://cache.ruby-lang.org/pub/ruby/"+
strings.Join(strings.SplitN(version, ".", 3)[:2], ".")+
"/ruby-"+version+".tar.gz",
checksum,
pkg.TarGzip,
), nil, &MakeHelper{
SkipCheck: true,
Configure: []KV{[2]string{"--disable-install-doc"}},
},
Libffi,
OpenSSL,
), version
}
func init() {
artifactsM[Ruby] = Metadata{
f: Toolchain.newRuby,
Name: "ruby",
Description: "a programming language",
Website: "https://www.ruby-lang.org/",
// TODO(ophestra): resolve runtime deps
ID: 4223,
}
}