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";
|
2023-01-23 21:48:43 +00:00
|
|
|
version = "1.3.236.0";
|
2020-02-07 13:23:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "SPIRV-Cross";
|
2023-01-23 21:48:43 +00:00
|
|
|
rev = "sdk-${finalAttrs.version}";
|
|
|
|
hash = "sha256-zx/fjDKgteWizC3O1bL4WSwwPNw2/2m0xCnCiOttgAo=";
|
2020-02-07 13:23:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-07 13:23:57 +00:00
|
|
|
description = "A tool designed for parsing and converting SPIR-V to other shader languages";
|
|
|
|
homepage = "https://github.com/KhronosGroup/SPIRV-Cross";
|
2020-09-23 09:41:35 +00:00
|
|
|
changelog = "https://github.com/KhronosGroup/SPIRV-Cross/releases/tag/${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-01-23 21:48:43 +00:00
|
|
|
})
|