Skip to content

Commit 8eb362d

Browse files
authored
feat: Add a package definition for rv (#652)
1 parent 0cac738 commit 8eb362d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

rv.hcl

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
description = "Next-gen very fast Ruby tooling"
2+
binaries = ["rv"]
3+
4+
platform "darwin" "arm64" {
5+
source = "https://github.com/spinel-coop/rv/releases/download/v${version}/rv-${xarch}-apple-darwin.tar.xz"
6+
7+
on "unpack" {
8+
rename {
9+
from = "${root}/rv-${xarch}-apple-darwin/rv"
10+
to = "${root}/rv"
11+
}
12+
}
13+
}
14+
15+
platform "linux" {
16+
source = "https://github.com/spinel-coop/rv/releases/download/v${version}/rv-${xarch}-unknown-linux-gnu.tar.xz"
17+
18+
on "unpack" {
19+
rename {
20+
from = "${root}/rv-${xarch}-unknown-linux-gnu/rv"
21+
to = "${root}/rv"
22+
}
23+
}
24+
}
25+
26+
version "0.1.0" {
27+
auto-version {
28+
github-release = "spinel-coop/rv"
29+
}
30+
}
31+
32+
sha256sums = {
33+
"https://github.com/spinel-coop/rv/releases/download/v0.1.0/rv-x86_64-unknown-linux-gnu.tar.xz": "73c78c8cbb892a976313c07d5682cf01333d4938832e6ba0de72305a8cdbeb42",
34+
"https://github.com/spinel-coop/rv/releases/download/v0.1.0/rv-aarch64-apple-darwin.tar.xz": "20aeb23f6661197380f2b8d0c86e6c8716b5d870b5276c05640f5fc2a8b6447c",
35+
"https://github.com/spinel-coop/rv/releases/download/v0.1.0/rv-aarch64-unknown-linux-gnu.tar.xz": "bbb8d14e83aa3352f0dc17af1f1f250ee18ac47eb06532c5beb4ef13ba7a76c2",
36+
}

0 commit comments

Comments
 (0)