aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/stage0.az
blob: e415bbbe5c800f185fac9166d3d059738ec5de98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package rosa-stage0 {
	description = "Rosa OS stage0 bootstrap seed";
	version = unversioned;
	exclude = true;

	source = hakurei-source;
	extra = [
		llvm,
		mksh,
		toybox-early,
	];
	overlay = "/stage0";
	exec = generic {
		build = `
umask 377
tar -vc -C /stage0 . | \
	zstd -19 -T`+jobsE+` > \
	/work/stage0-`+triple+`.tar.zst
`;
	};

	inputs = [ zstd ];
}

package stage0-dist {
	description = "Rosa OS stage0 bootstrap seed (binary distribution)";
	exclude = true;

	version# = "20260723";
	output = remoteTar {
		url = "https://hakurei.app/seed/"+version+"/"+
			"stage0-"+triple+".tar.zst";
		checksum = arch {
			amd64 = "wG8FZoBqpiLNQlT4n7G4uuwFILZPxs_Sf_TQwjvxbS3qNJq8EntGLfMO4sikb1GE";
			arm64 = "iew97r0y9BgKyeDd5ih2Z-YkR6lh-RjqwYvcVo4XMLBiKHgaZPBMLSmxxVq5YQuv";
			riscv64 = "NrmC5PtDnr3tY2aVNReorqmYUj29F7PKXsDfWBxvUJfawKzQiDSCURu5HsVmEzsS";

			default = 0;
		};
		compress = zstd;
	};
}