aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-20 02:09:24 +0900
committerOphestra <cat@gensokyo.uk>2026-04-20 02:09:24 +0900
commit67404c98d9090e25988816f2f44f0d1a2e6db0c5 (patch)
tree46983bf1fa0799f463e6f97db386095910281f6e /internal
parentb9bf69cfce52573766a1f94f12738e6641c5d0ba (diff)
internal/rosa/nss: install buildcatrust from source
Dependencies are now available, so this no longer has to rely on the release. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/nss.go36
1 files changed, 15 insertions, 21 deletions
diff --git a/internal/rosa/nss.go b/internal/rosa/nss.go
index 2c493786..4f010699 100644
--- a/internal/rosa/nss.go
+++ b/internal/rosa/nss.go
@@ -82,30 +82,24 @@ func init() {
}
}
-func (t Toolchain) newBuildCATrust() (pkg.Artifact, string) {
+func init() {
const (
version = "0.5.1"
- checksum = "g9AqIksz-hvCUceSR7ZKwfqf8Y_UsJU_3_zLUIdc4IkxFVkgdv9kKVvhFjE4s1-7"
+ checksum = "oxjnuIrPVMPvD6x8VFLqB7EdbfuhouGQdtPuHDpEHGzoyH5nkxqtYN9UthMY9noA"
+ )
+ artifactsM[buildcatrust] = newPythonPackage(
+ "buildcatrust", 233988,
+ "transform certificate stores between formats",
+ "https://github.com/nix-community/buildcatrust",
+ version, newFromGitHub(
+ "nix-community/buildcatrust",
+ "v"+version, checksum,
+ ), &PackageAttr{
+ ScriptEarly: `
+rm buildcatrust/tests/test_nonhermetic.py
+`,
+ }, nil, P{PythonFlitCore},
)
- 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) {