aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-01 16:26:21 +0900
committerOphestra <cat@gensokyo.uk>2026-04-01 16:34:30 +0900
commitb6cbd49d8cb56c0918eda2b676744a31e4142d58 (patch)
tree1934c7415ff6acf6c0b6416e59ae1cc808801e9b /internal
parent6913b9224a1f296e8be3abdb6f1bc6277ffda292 (diff)
internal/rosa: p11-kit artifact
Another package distributed in xz only. This is fetched from the git remote directly to avoid XZ Utils. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/all.go1
-rw-r--r--internal/rosa/git.go8
-rw-r--r--internal/rosa/p11.go32
3 files changed, 39 insertions, 2 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go
index 560fb2cf..f0d0716d 100644
--- a/internal/rosa/all.go
+++ b/internal/rosa/all.go
@@ -101,6 +101,7 @@ const (
Nettle
Ninja
OpenSSL
+ P11Kit
PCRE2
Parallel
Patch
diff --git a/internal/rosa/git.go b/internal/rosa/git.go
index 142cd341..65ebd97b 100644
--- a/internal/rosa/git.go
+++ b/internal/rosa/git.go
@@ -1,6 +1,10 @@
package rosa
-import "hakurei.app/internal/pkg"
+import (
+ "path"
+
+ "hakurei.app/internal/pkg"
+)
func (t Toolchain) newGit() (pkg.Artifact, string) {
const (
@@ -90,7 +94,7 @@ func (t Toolchain) NewViaGit(
name, url, rev string,
checksum pkg.Checksum,
) pkg.Artifact {
- return t.New(name+"-"+rev, 0, t.AppendPresets(nil,
+ return t.New(name+"-"+path.Base(rev), 0, t.AppendPresets(nil,
NSSCACert,
Git,
), &checksum, nil, `
diff --git a/internal/rosa/p11.go b/internal/rosa/p11.go
new file mode 100644
index 00000000..7e491dc0
--- /dev/null
+++ b/internal/rosa/p11.go
@@ -0,0 +1,32 @@
+package rosa
+
+import "hakurei.app/internal/pkg"
+
+func (t Toolchain) newP11Kit() (pkg.Artifact, string) {
+ const (
+ version = "0.26.2"
+ checksum = "3ei-6DUVtYzrRVe-SubtNgRlweXd6H2qHmUu-_5qVyIn6gSTvZbGS2u79Y8IFb2N"
+ )
+ return t.NewPackage("p11-kit", version, t.NewViaGit(
+ "p11-kit-src", "https://github.com/p11-glue/p11-kit.git",
+ "refs/tags/"+version, mustDecode(checksum),
+ ), nil, &MesonHelper{
+ Setup: []KV{
+ {"Dsystemd", "disabled"},
+ },
+ },
+ Coreutils,
+ Diffutils,
+ ), version
+}
+func init() {
+ artifactsM[P11Kit] = Metadata{
+ f: Toolchain.newP11Kit,
+
+ Name: "p11-kit",
+ Description: "provides a way to load and enumerate PKCS#11 modules",
+ Website: "https://p11-glue.freedesktop.org/p11-kit.html",
+
+ ID: 2582,
+ }
+}