internal/rosa/package: migrate glslang

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-19 23:48:21 +09:00
parent f638c73933
commit bb230378e0
5 changed files with 116 additions and 124 deletions

View File

@@ -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 ];
}