diff options
author | lummax <luogpg@googlemail.com> | 2016-08-31 12:19:14 +0200 |
---|---|---|
committer | Joe Hermaszewski <git@monoid.al> | 2016-10-12 13:19:34 +0100 |
commit | 97577571702225f607fdfff02e6d58a33750fe70 (patch) | |
tree | 6fe1a9eba721a5512c86042d427837a3e92c84d3 /pkgs/development/tools/spirv-tools | |
parent | aa8b69c1f6d018fd49bd5afa02cb039ad797b9fe (diff) |
spirv-tools: init at 20160718
Diffstat (limited to 'pkgs/development/tools/spirv-tools')
-rw-r--r-- | pkgs/development/tools/spirv-tools/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/tools/spirv-tools/default.nix b/pkgs/development/tools/spirv-tools/default.nix new file mode 100644 index 0000000000000..99cda697d330d --- /dev/null +++ b/pkgs/development/tools/spirv-tools/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub, cmake, python }: + +let + +spirv_sources = { + # `vulkan-loader` requires a specific version of `spirv-tools` as specified + # in `<vulkan-loader-repo>/spirv-tools_revision`. + tools = fetchFromGitHub { + owner = "KhronosGroup"; + repo = "SPIRV-Tools"; + rev = "1a9385bbd0e6eae188c14302cf37c415ecc8b698"; + sha256 = "12a2wyxhsnms966s12x9bkz2kh478qf9ygglzkxkd83j5fvmvzwm"; + }; + headers = fetchFromGitHub { + owner = "KhronosGroup"; + repo = "SPIRV-Headers"; + rev = "3814effb879ab5a98a7b9288a4b4c7849d2bc8ac"; + sha256 = "1wfszfsx318i0gavwk0w1klg4wiav8g4q4qpraqgm69arasfb9gh"; + }; +}; + +in + +stdenv.mkDerivation rec { + name = "spirv-tools-${version}"; + version = "2016-07-18"; + + src = spirv_sources.tools; + patchPhase = ''ln -sv ${spirv_sources.headers} external/spirv-headers''; + + buildInputs = [ cmake python ]; + + meta = with stdenv.lib; { + inherit (src.meta) homepage; + description = "The SPIR-V Tools project provides an API and commands for processing SPIR-V modules."; + }; +} |