aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/spirv.az
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/spirv.az
parentf638c73933521e58e7551b46dba8db21ebf7ce19 (diff)
internal/rosa/package: migrate glslang
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/spirv.az')
-rw-r--r--internal/rosa/package/spirv.az47
1 files changed, 47 insertions, 0 deletions
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 ];
+}