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