aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/nss.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-13 01:59:28 +0900
committerOphestra <cat@gensokyo.uk>2026-04-13 01:59:28 +0900
commit46428ed85d599baa9572a570ce7f1603f7c52692 (patch)
tree8664cd13a0374bf300ff42bea40a4ed45dbf35bb /internal/rosa/nss.go
parent081d6b463cf9c71fd87eb089ab2a2fac5722e9e8 (diff)
internal/rosa/python: url pip wheel helper
This enables a cleaner higher-level helper. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/nss.go')
-rw-r--r--internal/rosa/nss.go32
1 files changed, 23 insertions, 9 deletions
diff --git a/internal/rosa/nss.go b/internal/rosa/nss.go
index 12354de3..b2d2a8ca 100644
--- a/internal/rosa/nss.go
+++ b/internal/rosa/nss.go
@@ -83,16 +83,30 @@ func init() {
}
}
-func init() {
- const version = "0.4.0"
- artifactsM[buildcatrust] = newViaPip(
- "buildcatrust",
- "transform certificate stores between formats",
- version, "py3", "none", "any",
- "k_FGzkRCLjbTWBkuBLzQJ1S8FPAz19neJZlMHm0t10F2Y0hElmvVwdSBRc03Rjo1",
- "https://github.com/nix-community/buildcatrust/"+
- "releases/download/v"+version+"/",
+func (t Toolchain) newBuildCATrust() (pkg.Artifact, string) {
+ const (
+ version = "0.4.0"
+ checksum = "k_FGzkRCLjbTWBkuBLzQJ1S8FPAz19neJZlMHm0t10F2Y0hElmvVwdSBRc03Rjo1"
)
+ return t.newViaPip("buildcatrust", version,
+ "https://github.com/nix-community/buildcatrust/releases/"+
+ "download/v"+version+"/buildcatrust-"+version+"-py3-none-any.whl",
+ checksum), version
+}
+func init() {
+ artifactsM[buildcatrust] = Metadata{
+ f: Toolchain.newBuildCATrust,
+
+ Name: "buildcatrust",
+ Description: "transform certificate stores between formats",
+ Website: "https://github.com/nix-community/buildcatrust",
+
+ Dependencies: P{
+ Python,
+ },
+
+ ID: 233988,
+ }
}
func (t Toolchain) newNSSCACert() (pkg.Artifact, string) {