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 }