aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-19 23:48:21 +0900
committerOphestra <cat@gensokyo.uk>2026-05-19 23:48:39 +0900
commitbb230378e080bdfdb4e323ec94a44064d67b3386 (patch)
treed5d126728f7ea443b93a597db6231867bff3995d /internal/rosa/package
parentf638c73933521e58e7551b46dba8db21ebf7ce19 (diff)
internal/rosa/package: migrate glslang
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package')
-rw-r--r--internal/rosa/package/glslang.az31
-rw-r--r--internal/rosa/package/spirv.az47
2 files changed, 78 insertions, 0 deletions
diff --git a/internal/rosa/package/glslang.az b/internal/rosa/package/glslang.az
new file mode 100644
index 00000000..1b9dc8e1
--- /dev/null
+++ b/internal/rosa/package/glslang.az
@@ -0,0 +1,31 @@
+package glslang {
+ description = "reference front end for GLSL/ESSL";
+ website = "https://github.com/KhronosGroup/glslang";
+ anitya = 205796;
+
+ version* = "16.3.0";
+ source = remoteGitHub {
+ suffix = "KhronosGroup/glslang";
+ tag = version;
+ checksum = "xyqDf8k3-D0_BXHGi0uLgMglnJ05Rf3j73QgbDs3sGtKNdBIQhY8JfqX1NcNoJQN";
+ };
+
+ // test suite writes to source
+ writable = true;
+ chmod = true;
+
+ exec = cmake {
+ cache = {
+ "BUILD_SHARED_LIBS": "ON";
+ "ALLOW_EXTERNAL_SPIRV_TOOLS": "ON";
+ };
+ };
+
+ inputs = [
+ python,
+ bash,
+ diffutils,
+
+ spirv-tools,
+ ];
+}
diff --git a/internal/rosa/package/spirv.az b/internal/rosa/package/spirv.az
new file mode 100644
index 00000000..45ee1dc6
--- /dev/null
+++ b/internal/rosa/package/spirv.az
@@ -0,0 +1,47 @@
+package spirv-headers {
+ description = "machine-readable files for the SPIR-V Registry";
+ website = "https://github.com/KhronosGroup/SPIRV-Headers";
+ anitya = 230542;
+ // upstream changed version scheme, anitya incapable of filtering them
+ latest = anityaFilterSPIRV;
+
+ version* = "1.4.341.0";
+ source = remoteGitHub {
+ suffix = "KhronosGroup/SPIRV-Headers";
+ tag = "vulkan-sdk-"+version;
+ checksum = "0PL43-19Iaw4k7_D8J8BvoJ-iLgCVSYZ2ThgDPGfAJwIJFtre7l0cnQtLjcY-JvD";
+ };
+
+ exec = cmake {
+ // upstream has no tests
+ skipTest = true;
+ };
+}
+
+package spirv-tools {
+ description = "an API and commands for processing SPIR-V modules";
+ website = "https://github.com/KhronosGroup/SPIRV-Tools";
+ anitya = 14894;
+ latest = anityaFallback;
+
+ version* = "2026.1";
+ source = remoteGitHub {
+ suffix = "KhronosGroup/SPIRV-Tools";
+ tag = "v"+version;
+ checksum = "ZSQPQx8NltCDzQLk4qlaVxyWRWeI_JtsjEpeFt3kezTanl9DTHfLixSUCezMFBjv";
+ };
+
+ exec = cmake {
+ cache = {
+ "SPIRV-Headers_SOURCE_DIR": "/system";
+ };
+ };
+
+ inputs = [
+ python,
+
+ spirv-headers,
+ ];
+
+ runtime = [ spirv-headers ];
+}