aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-09 00:05:40 +0900
committerOphestra <cat@gensokyo.uk>2026-05-09 00:05:40 +0900
commit6e73c28a92fdca0b50e65938599c3dde8c65a1c5 (patch)
treeed6254315a63efdf30f4bef3cba15d8575196116 /internal
parent2c08aa3674d77ffb0842d54aacd3108697923ca8 (diff)
internal/rosa: hwdata artifact
Required by libdisplay-info. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/all.go1
-rw-r--r--internal/rosa/hwdata.go34
2 files changed, 35 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go
index 71175094..cfe384af 100644
--- a/internal/rosa/all.go
+++ b/internal/rosa/all.go
@@ -71,6 +71,7 @@ const (
Gzip
Hakurei
HakureiDist
+ Hwdata
IPTables
Kmod
LIT
diff --git a/internal/rosa/hwdata.go b/internal/rosa/hwdata.go
new file mode 100644
index 00000000..0c80feaa
--- /dev/null
+++ b/internal/rosa/hwdata.go
@@ -0,0 +1,34 @@
+package rosa
+
+import "hakurei.app/internal/pkg"
+
+func (t Toolchain) newHwdata() (pkg.Artifact, string) {
+ const (
+ version = "0.407"
+ checksum = "6p1XD0CRuzt6hLfjv4ShKBW934BexmoPkRrmwxD4J63fBVCzVBRHyF8pVJdW_Xjm"
+ )
+ return t.NewPackage("hwdata", version, newFromGitHub(
+ "vcrhonek/hwdata",
+ "v"+version, checksum,
+ ), &PackageAttr{
+ Writable: true,
+ EnterSource: true,
+ }, &MakeHelper{
+ // awk: fatal: cannot open file `hwdata.spec' for reading: No such file or directory
+ InPlace: true,
+
+ // lspci: Unknown option 'A' (see "lspci --help")
+ SkipCheck: true,
+ }), version
+}
+func init() {
+ artifactsM[Hwdata] = Metadata{
+ f: Toolchain.newHwdata,
+
+ Name: "hwdata",
+ Description: "contains various hardware identification and configuration data",
+ Website: "https://github.com/vcrhonek/hwdata",
+
+ ID: 5387,
+ }
+}