diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-01 22:24:09 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-01 22:24:09 +0900 |
| commit | 4b19686109b0962ea68dfe58feafffe3bac9c202 (patch) | |
| tree | 706d986f74c012eb414f03c268bec057b3c5ba86 /internal/rosa/package | |
| parent | 8fea10f7d05648900ce1d9abb899402298382e7d (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/rosa/package')
| -rw-r--r-- | internal/rosa/package/hakurei.az | 47 |
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; |
