aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/hakurei.az
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/package/hakurei.az')
-rw-r--r--internal/rosa/package/hakurei.az56
1 files changed, 53 insertions, 3 deletions
diff --git a/internal/rosa/package/hakurei.az b/internal/rosa/package/hakurei.az
index 4e9a8d2c..31e38686 100644
--- a/internal/rosa/package/hakurei.az
+++ b/internal/rosa/package/hakurei.az
@@ -2,11 +2,11 @@ package hakurei-source {
description = "hakurei source tree";
exclude = true;
- version# = "0.4.8";
+ version# = "0.4.9";
output = remoteGit {
- url = "https://git.gensokyo.uk/rosa/hakurei.git";
+ url = "https://src.rosa.moe/hakurei";
tag = "v"+version;
- checksum = "B6aoojyXblZ7eYwdc3Ak3wDbBpu63j8S79Gpiul9Obb8diqzBIJ2qNCgWVH6qLsc";
+ checksum = "t2npzwCAnjAGtRvJC7VGiLTVGAStT21xoqweaKtDgP0Ro0ZtS53G9TF4vGKC72y0";
};
}
@@ -75,6 +75,7 @@ mkdir -p /work/system/bin/
xcb,
wayland,
wayland-protocols,
+ util-linux,
kernel-headers,
];
@@ -121,6 +122,55 @@ DESTDIR=/work "./${NAME}.sh"
xcb,
wayland,
wayland-protocols,
+ util-linux,
+ kernel-headers,
+ ];
+
+ 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,
+ util-linux,
kernel-headers,
];