All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 1m46s
Test / Hakurei (push) Successful in 2m59s
Test / ShareFS (push) Successful in 3m2s
Test / Hpkg (push) Successful in 4m2s
Test / Sandbox (race detector) (push) Successful in 5m14s
Test / Hakurei (race detector) (push) Successful in 6m17s
Test / Flake checks (push) Successful in 2m28s
Required by curl. Signed-off-by: Ophestra <cat@gensokyo.uk>
29 lines
694 B
Go
29 lines
694 B
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newLibpsl() pkg.Artifact {
|
|
const (
|
|
version = "0.21.5"
|
|
checksum = "XjfxSzh7peG2Vg4vJlL8z4JZJLcXqbuP6pLWkrGCmRxlnYUFTKNBqWGHCxEOlCad"
|
|
)
|
|
return t.NewViaMake("libpsl", version, pkg.NewHTTPGetTar(
|
|
nil, "https://github.com/rockdaboot/libpsl/releases/download/"+
|
|
version+"/libpsl-"+version+".tar.gz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
), &MakeAttr{
|
|
Writable: true,
|
|
ScriptEarly: `
|
|
cd /usr/src/libpsl
|
|
|
|
test_disable() { chmod +w "$2" && echo "$1" > "$2"; }
|
|
|
|
test_disable 'int main(){return 0;}' tests/test-is-public-builtin.c
|
|
`,
|
|
},
|
|
t.Load(Python),
|
|
)
|
|
}
|
|
func init() { artifactsF[Libpsl] = Toolchain.newLibpsl }
|