diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-02-12 01:48:21 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-02-12 01:48:21 +0900 |
| commit | 3e18a4b3970b7bf1e7d9fb3e9787a6810bc7d5c5 (patch) | |
| tree | 127821819d66b86422277b88b78a6435467a3a99 /internal/rosa/zstd.go | |
| parent | 1791b604b525cd67f3b6c393a1364688762aa2e0 (diff) | |
internal/rosa: zstd artifact
Optional dependency of many programs, and generally useful to have around.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/zstd.go')
| -rw-r--r-- | internal/rosa/zstd.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/internal/rosa/zstd.go b/internal/rosa/zstd.go new file mode 100644 index 00000000..05164cf7 --- /dev/null +++ b/internal/rosa/zstd.go @@ -0,0 +1,22 @@ +package rosa + +import "hakurei.app/internal/pkg" + +func (t Toolchain) newZstd() pkg.Artifact { + const ( + version = "1.5.7" + checksum = "4XhfR7DwVkwo1R-TmYDAJOcx9YXv9WSFhcFUe3hWEAMmdMLPhFaznCqYIA19_xxV" + ) + return t.NewViaCMake("zstd", version, "full", pkg.NewHTTPGetTar( + nil, "https://github.com/facebook/zstd/releases/download/"+ + "v"+version+"/zstd-"+version+".tar.gz", + mustDecode(checksum), + pkg.TarGzip, + ), &CMakeAttr{ + Append: []string{"build", "cmake"}, + Cache: [][2]string{ + {"CMAKE_BUILD_TYPE", "Release"}, + }, + }) +} +func init() { artifactsF[Zstd] = Toolchain.newZstd } |
