1 { lib, stdenv, fetchFromGitHub, cmake, python3 }:
3 stdenv.mkDerivation (finalAttrs: {
7 src = fetchFromGitHub {
8 owner = "KhronosGroup";
10 rev = "vulkan-sdk-${finalAttrs.version}";
11 hash = "sha256-HKEh/UQzDQEOvJGHQlM6kEYVZrMaUBOcOGjjHWXSPoo=";
14 nativeBuildInputs = [ cmake python3 ];
17 substituteInPlace $out/lib/pkgconfig/*.pc \
18 --replace '=''${prefix}//' '=/'
22 description = "Tool designed for parsing and converting SPIR-V to other shader languages";
23 homepage = "https://github.com/KhronosGroup/SPIRV-Cross";
24 changelog = "https://github.com/KhronosGroup/SPIRV-Cross/releases/tag/${finalAttrs.version}";
25 platforms = platforms.all;
26 license = licenses.asl20;
27 maintainers = with maintainers; [ Flakebi ];
28 mainProgram = "spirv-cross";