aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/libpsl.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-04 18:01:18 +0900
committerOphestra <cat@gensokyo.uk>2026-03-05 00:20:27 +0900
commitd2c6d486b06073aa88ee1912d3587f657cd57304 (patch)
tree42e7df590ee8cda255e4cd35f9bd5ff7f9b2f94f /internal/rosa/libpsl.go
parent6fdd800b2b421b32e7db373b576433126c4652a2 (diff)
internal/rosa: provide package metadata
This had to be done out-of-band because there was no way to efficiently represent these within Artifact. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/libpsl.go')
-rw-r--r--internal/rosa/libpsl.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/internal/rosa/libpsl.go b/internal/rosa/libpsl.go
index 27b382f5..6dd54f0c 100644
--- a/internal/rosa/libpsl.go
+++ b/internal/rosa/libpsl.go
@@ -2,7 +2,7 @@ package rosa
import "hakurei.app/internal/pkg"
-func (t Toolchain) newLibpsl() pkg.Artifact {
+func (t Toolchain) newLibpsl() (pkg.Artifact, string) {
const (
version = "0.21.5"
checksum = "XjfxSzh7peG2Vg4vJlL8z4JZJLcXqbuP6pLWkrGCmRxlnYUFTKNBqWGHCxEOlCad"
@@ -21,6 +21,14 @@ test_disable 'int main(){return 0;}' tests/test-is-public-builtin.c
`,
}, (*MakeHelper)(nil),
Python,
- )
+ ), version
+}
+func init() {
+ artifactsM[Libpsl] = Metadata{
+ f: Toolchain.newLibpsl,
+
+ Name: "libpsl",
+ Description: "provides functions to work with the Mozilla Public Suffix List",
+ Website: "https://rockdaboot.github.io/libpsl/",
+ }
}
-func init() { artifactsF[Libpsl] = Toolchain.newLibpsl }