aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-01 22:24:09 +0900
committerOphestra <cat@gensokyo.uk>2026-10-01 22:24:09 +0900
commit4b19686109b0962ea68dfe58feafffe3bac9c202 (patch)
tree706d986f74c012eb414f03c268bec057b3c5ba86 /internal
parent8fea10f7d05648900ce1d9abb899402298382e7d (diff)
cmd/dist: optionally build with race instrument
This is mostly useful for the integration test suites. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/package/hakurei.az47
1 files changed, 47 insertions, 0 deletions
diff --git a/internal/rosa/package/hakurei.az b/internal/rosa/package/hakurei.az
index f8b03b74..596eb956 100644
--- a/internal/rosa/package/hakurei.az
+++ b/internal/rosa/package/hakurei.az
@@ -127,6 +127,53 @@ DESTDIR=/work "./${NAME}.sh"
runtime = nil;
}
+package hakurei-dist-race {
+ description = "low-level userspace tooling for Rosa OS (distribution tarball with race instrument)";
+ website = "https://hakurei.app";
+
+ source = hakurei-source;
+ enterSource = true;
+ writable = true;
+ chmod = true;
+
+ env = [
+ "CGO_ENABLED=1",
+ "GOCACHE=/tmp/gocache",
+ "CC=clang -O3 -Werror",
+ "HAKUREI_RACE=1",
+ ];
+
+ exec = generic {
+ chdir = false;
+ build = `
+NAME=make`;
+ check = `
+NAME=all`;
+ install = `
+DESTDIR=/work "./${NAME}.sh"
+`;
+ };
+
+ tools = [
+ go,
+ pkgconf,
+ net-tools,
+ acl,
+ ];
+
+ inputs = [
+ libseccomp,
+ acl,
+ fuse,
+ xcb,
+ wayland,
+ wayland-protocols,
+ kernel-headers,
+ ];
+
+ runtime = nil;
+}
+
package earlyinit {
description = "Rosa OS initramfs init program";
exclude = true;