2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, python3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "spirv-cross";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.3.290.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "SPIRV-Cross";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "vulkan-sdk-${finalAttrs.version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-h5My9PbPq1l03xpXQQFolNy7G1RhExtTH6qPg7vVF/8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace $out/lib/pkgconfig/*.pc \
|
|
|
|
--replace '=''${prefix}//' '=/'
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool designed for parsing and converting SPIR-V to other shader languages";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/KhronosGroup/SPIRV-Cross";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/KhronosGroup/SPIRV-Cross/releases/tag/${finalAttrs.version}";
|
2021-03-19 17:17:44 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ Flakebi ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "spirv-cross";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
})
|