2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, python3, spirv-headers }:
|
2016-08-31 10:19:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "spirv-tools";
|
2022-04-24 18:43:17 +00:00
|
|
|
version = "1.3.211.0";
|
2016-08-31 10:19:14 +00:00
|
|
|
|
2019-02-17 17:52:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "SPIRV-Tools";
|
2022-01-16 00:31:37 +00:00
|
|
|
rev = "sdk-${version}";
|
2022-04-24 18:43:17 +00:00
|
|
|
sha256 = "sha256-DoE+UCJOTB8JidC208wgfV1trZC4r9uFvwRPUhJVaII=";
|
2019-02-17 17:52:50 +00:00
|
|
|
};
|
2016-08-31 10:19:14 +00:00
|
|
|
|
2019-11-02 18:41:47 +00:00
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
2016-08-31 10:19:14 +00:00
|
|
|
|
2019-02-17 17:52:50 +00:00
|
|
|
cmakeFlags = [ "-DSPIRV-Headers_SOURCE_DIR=${spirv-headers.src}" ];
|
2016-09-18 05:19:40 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-31 10:19:14 +00:00
|
|
|
inherit (src.meta) homepage;
|
2017-01-04 09:56:26 +00:00
|
|
|
description = "The SPIR-V Tools project provides an API and commands for processing SPIR-V modules";
|
|
|
|
license = licenses.asl20;
|
2022-02-09 22:49:03 +00:00
|
|
|
platforms = platforms.unix;
|
2017-04-01 19:28:59 +00:00
|
|
|
maintainers = [ maintainers.ralith ];
|
2016-08-31 10:19:14 +00:00
|
|
|
};
|
|
|
|
}
|