3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/spirv-tools/default.nix

31 lines
829 B
Nix
Raw Normal View History

2019-08-06 23:48:54 +01:00
{ stdenv, fetchFromGitHub, cmake, python3, spirv-headers }:
2016-08-31 11:19:14 +01:00
let
2019-02-17 17:52:50 +00:00
# Update spirv-headers rev in lockstep according to DEPs file
2019-11-02 18:41:47 +00:00
version = "2019.4";
2016-08-31 11:19:14 +01:00
in
stdenv.mkDerivation rec {
pname = "spirv-tools";
2019-02-17 17:52:50 +00:00
inherit version;
2016-08-31 11:19:14 +01:00
2019-02-17 17:52:50 +00:00
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "SPIRV-Tools";
rev = "v${version}";
2019-11-02 18:41:47 +00:00
sha256 = "17bbvhk4p42x4jlvcr5p9903xiiryw57c8yyfxmqik10s8601an9";
2019-02-17 17:52:50 +00:00
};
enableParallelBuilding = true;
2016-08-31 11:19:14 +01:00
2019-11-02 18:41:47 +00:00
nativeBuildInputs = [ cmake python3 ];
2016-08-31 11:19:14 +01:00
2019-02-17 17:52:50 +00:00
cmakeFlags = [ "-DSPIRV-Headers_SOURCE_DIR=${spirv-headers.src}" ];
2016-08-31 11:19:14 +01:00
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "The SPIR-V Tools project provides an API and commands for processing SPIR-V modules";
license = licenses.asl20;
platforms = platforms.linux;
2017-04-01 20:28:59 +01:00
maintainers = [ maintainers.ralith ];
2016-08-31 11:19:14 +01:00
};
}